Interface SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder (0.17.0)

public static interface SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMaxSnippetCount()

public abstract int getMaxSnippetCount()

Max number of snippets returned in each search result. 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.

int32 max_snippet_count = 1;

Returns
TypeDescription
int

The maxSnippetCount.

getReferenceOnly()

public abstract boolean getReferenceOnly()

if true, only snippet reference is returned.

bool reference_only = 2;

Returns
TypeDescription
boolean

The referenceOnly.