Class ContentSearchSpec (0.11.10)

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

A specification for configuring the behavior of content search.

Attributes

NameDescription
snippet_spec google.cloud.discoveryengine_v1alpha.types.SearchRequest.ContentSearchSpec.SnippetSpec
If snippetSpec is not specified, snippets are not included in the search response.
summary_spec google.cloud.discoveryengine_v1alpha.types.SearchRequest.ContentSearchSpec.SummarySpec
If summarySpec is not specified, summaries are not included in the search response.
extractive_content_spec google.cloud.discoveryengine_v1alpha.types.SearchRequest.ContentSearchSpec.ExtractiveContentSpec
If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
search_result_mode google.cloud.discoveryengine_v1alpha.types.SearchRequest.ContentSearchSpec.SearchResultMode
Specifies the search result mode. If unspecified, the search result mode is based on [DataStore.DocumentProcessingConfig.chunking_config][]: - If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, it defaults to CHUNKS. - Otherwise, it defaults to DOCUMENTS.

Classes

ExtractiveContentSpec

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

A specification for configuring the extractive content in a search response.

SearchResultMode

SearchResultMode(value)

Specifies the search result mode. If unspecified, the search result mode is based on [DataStore.DocumentProcessingConfig.chunking_config][]:

  • If [DataStore.DocumentProcessingConfig.chunking_config][] is specified, it defaults to CHUNKS.
  • Otherwise, it defaults to DOCUMENTS.

Values: SEARCH_RESULT_MODE_UNSPECIFIED (0): Default value. DOCUMENTS (1): Returns documents in the search result. CHUNKS (2): Returns chunks in the search result. Only available if the [DataStore.DocumentProcessingConfig.chunking_config][] is specified.

SnippetSpec

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

A specification for configuring snippets in a search response.

SummarySpec

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

A specification for configuring a summary returned in a search response.