Discovery Engine v1 API - Class SearchRequest.Types.ContentSearchSpec (1.6.0)

public sealed class SearchRequest.Types.ContentSearchSpec : IMessage<SearchRequest.Types.ContentSearchSpec>, IEquatable<SearchRequest.Types.ContentSearchSpec>, IDeepCloneable<SearchRequest.Types.ContentSearchSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Discovery Engine v1 API class SearchRequest.Types.ContentSearchSpec.

A specification for configuring the behavior of content search.

Inheritance

object > SearchRequest.Types.ContentSearchSpec

Namespace

Google.Cloud.DiscoveryEngine.V1

Assembly

Google.Cloud.DiscoveryEngine.V1.dll

Constructors

ContentSearchSpec()

public ContentSearchSpec()

ContentSearchSpec(ContentSearchSpec)

public ContentSearchSpec(SearchRequest.Types.ContentSearchSpec other)
Parameter
Name Description
other SearchRequestTypesContentSearchSpec

Properties

ChunkSpec

public SearchRequest.Types.ContentSearchSpec.Types.ChunkSpec ChunkSpec { get; set; }

Specifies the chunk spec to be returned from the search response. Only available if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]

Property Value
Type Description
SearchRequestTypesContentSearchSpecTypesChunkSpec

ExtractiveContentSpec

public SearchRequest.Types.ContentSearchSpec.Types.ExtractiveContentSpec ExtractiveContentSpec { get; set; }

If there is no extractive_content_spec provided, there will be no extractive answer in the search response.

Property Value
Type Description
SearchRequestTypesContentSearchSpecTypesExtractiveContentSpec

SearchResultMode

public SearchRequest.Types.ContentSearchSpec.Types.SearchResultMode SearchResultMode { get; set; }

Specifies the search result mode. If unspecified, the search result mode defaults to DOCUMENTS.

Property Value
Type Description
SearchRequestTypesContentSearchSpecTypesSearchResultMode

SnippetSpec

public SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec SnippetSpec { get; set; }

If snippetSpec is not specified, snippets are not included in the search response.

Property Value
Type Description
SearchRequestTypesContentSearchSpecTypesSnippetSpec

SummarySpec

public SearchRequest.Types.ContentSearchSpec.Types.SummarySpec SummarySpec { get; set; }

If summarySpec is not specified, summaries are not included in the search response.

Property Value
Type Description
SearchRequestTypesContentSearchSpecTypesSummarySpec