Class ChunkSpec (0.11.11)

ChunkSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS

Attributes

NameDescription
num_previous_chunks int
The number of previous chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no previous chunks will be returned.
num_next_chunks int
The number of next chunks to be returned of the current chunk. The maximum allowed value is 3. If not specified, no next chunks will be returned.