Interface GuidedSearchSpecOrBuilder (0.44.0)

public interface GuidedSearchSpecOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getEnableRefinementAttributes()

public abstract boolean getEnableRefinementAttributes()

Whether or not to enable and include refinement attributes in gudied search result.

bool enable_refinement_attributes = 1;

Returns
Type Description
boolean

The enableRefinementAttributes.

getEnableRelatedQuestions()

public abstract boolean getEnableRelatedQuestions()

Whether or not to enable and include related questions in search response.

bool enable_related_questions = 2;

Returns
Type Description
boolean

The enableRelatedQuestions.

getMaxRelatedQuestions()

public abstract int getMaxRelatedQuestions()

Max number of related questions to be returned. The valid range is [1, 5]. If enable_related_questions is true, the default value is 3.

int32 max_related_questions = 3;

Returns
Type Description
int

The maxRelatedQuestions.