Interface SearchRequest.QueryExpansionSpecOrBuilder (0.43.0)

public static interface SearchRequest.QueryExpansionSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCondition()

public abstract SearchRequest.QueryExpansionSpec.Condition getCondition()

The condition under which query expansion should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1;

Returns
Type Description
SearchRequest.QueryExpansionSpec.Condition

The condition.

getConditionValue()

public abstract int getConditionValue()

The condition under which query expansion should occur. Default to Condition.DISABLED.

.google.cloud.discoveryengine.v1.SearchRequest.QueryExpansionSpec.Condition condition = 1;

Returns
Type Description
int

The enum numeric value on the wire for condition.

getPinUnexpandedResults()

public abstract boolean getPinUnexpandedResults()

Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.

bool pin_unexpanded_results = 2;

Returns
Type Description
boolean

The pinUnexpandedResults.