Discovery Engine v1beta API - Class SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec (1.0.0-beta06)

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.

Inheritance

object > SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

SnippetSpec()

public SnippetSpec()

SnippetSpec(SnippetSpec)

public SnippetSpec(SearchRequest.Types.ContentSearchSpec.Types.SnippetSpec other)
Parameter
NameDescription
otherSearchRequestTypesContentSearchSpecTypesSnippetSpec

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
TypeDescription
int

ReferenceOnly

public bool ReferenceOnly { get; set; }

if true, only snippet reference is returned.

Property Value
TypeDescription
bool