Class ContentSearchSpec (0.13.1)

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

A specification for configuring the behavior of content search.

Attributes

Name Description
snippet_spec google.cloud.discoveryengine_v1.types.SearchRequest.ContentSearchSpec.SnippetSpec
If snippetSpec is not specified, snippets are not included in the search response.
summary_spec google.cloud.discoveryengine_v1.types.SearchRequest.ContentSearchSpec.SummarySpec
If summarySpec is not specified, summaries are not included in the search response.
extractive_content_spec google.cloud.discoveryengine_v1.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_v1.types.SearchRequest.ContentSearchSpec.SearchResultMode
Specifies the search result mode. If unspecified, the search result mode defaults to DOCUMENTS.
chunk_spec google.cloud.discoveryengine_v1.types.SearchRequest.ContentSearchSpec.ChunkSpec
Specifies the chunk spec to be returned from the search response. Only available if the SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS

Classes

ChunkSpec

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

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 defaults to DOCUMENTS.

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.