public sealed class SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec : IMessage<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IEquatable<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IDeepCloneable<SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec.
The specification that configs the snippet in the search results.
Implements
IMessageSearchRequestTypesContentSearchSpecTypesSnippetSpec, IEquatableSearchRequestTypesContentSearchSpecTypesSnippetSpec, IDeepCloneableSearchRequestTypesContentSearchSpecTypesSnippetSpec, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1BetaAssembly
Google.Cloud.DiscoveryEngine.V1Beta.dll
Constructors
SnippetSpec()
public SnippetSpec()
SnippetSpec(SnippetSpec)
public SnippetSpec(SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec other)
Parameter | |
---|---|
Name | Description |
other | SearchRequestTypesContentSearchSpecTypesSnippetSpec |
Properties
MaxSnippetCount
public int MaxSnippetCount { get; set; }
Max number of snippets returned in each search result.
A snippet is an infomartive summary of a content with highlighting for UI rendering.
If the matching snippets is less than the max_snippet_count, return all of the snippets; otherwise, return the max_snippet_count.
At most 5 snippets will be returned for each SearchResult.
Property Value | |
---|---|
Type | Description |
int |
ReferenceOnly
public bool ReferenceOnly { get; set; }
if true, only snippet reference is returned.
Property Value | |
---|---|
Type | Description |
bool |