Interface SearchResponse.QueryExpansionInfoOrBuilder (2.7.0)

public static interface SearchResponse.QueryExpansionInfoOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExpandedQuery()

public abstract boolean getExpandedQuery()

Bool describing whether query expansion has occurred.

bool expanded_query = 1;

Returns
TypeDescription
boolean

The expandedQuery.

getPinnedResultCount()

public abstract long getPinnedResultCount()

Number of pinned results. This field will only be set when expansion happens and SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.

int64 pinned_result_count = 2;

Returns
TypeDescription
long

The pinnedResultCount.