Class ChunkSpec (0.13.5)

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

Name Description
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.