Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec.
A specification for configuring the behavior of content search.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#chunk_spec
def chunk_spec() -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ChunkSpec
- (::Google::Cloud::DiscoveryEngine::V1::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
#chunk_spec=
def chunk_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ChunkSpec
- value (::Google::Cloud::DiscoveryEngine::V1::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
- (::Google::Cloud::DiscoveryEngine::V1::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
#extractive_content_spec
def extractive_content_spec() -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ExtractiveContentSpec
- (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ExtractiveContentSpec) — If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
#extractive_content_spec=
def extractive_content_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ExtractiveContentSpec
- value (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ExtractiveContentSpec) — If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
- (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::ExtractiveContentSpec) — If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
#search_result_mode
def search_result_mode() -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SearchResultMode
-
(::Google::Cloud::DiscoveryEngine::V1::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
.
- If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
it defaults to
#search_result_mode=
def search_result_mode=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SearchResultMode
-
value (::Google::Cloud::DiscoveryEngine::V1::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
.
- If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
it defaults to
-
(::Google::Cloud::DiscoveryEngine::V1::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
.
- If [DataStore.DocumentProcessingConfig.chunking_config][] is specified,
it defaults to
#snippet_spec
def snippet_spec() -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SnippetSpec
-
(::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SnippetSpec) — If
snippetSpec
is not specified, snippets are not included in the search response.
#snippet_spec=
def snippet_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SnippetSpec
-
value (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SnippetSpec) — If
snippetSpec
is not specified, snippets are not included in the search response.
-
(::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SnippetSpec) — If
snippetSpec
is not specified, snippets are not included in the search response.
#summary_spec
def summary_spec() -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec
-
(::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec) — If
summarySpec
is not specified, summaries are not included in the search response.
#summary_spec=
def summary_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec
-
value (::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec) — If
summarySpec
is not specified, summaries are not included in the search response.
-
(::Google::Cloud::DiscoveryEngine::V1::SearchRequest::ContentSearchSpec::SummarySpec) — If
summarySpec
is not specified, summaries are not included in the search response.