The condition under which query expansion should occur. Default to Condition.DISABLED.
pinUnexpandedResults
boolean
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.
Condition
Enum describing under which condition query expansion should occur.
Enums
CONDITION_UNSPECIFIED
Unspecified query expansion condition. In this case, server behavior defaults to Condition.DISABLED.
DISABLED
Disabled query expansion. Only the exact search query is used, even if SearchResponse.total_size is zero.
AUTO
Automatic query expansion built by the Search API.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-28 UTC."],[[["Query expansion settings are determined by a `condition` field, which defines when expansion occurs."],["The `condition` field can be set to `DISABLED`, `AUTO`, or `CONDITION_UNSPECIFIED`, with `DISABLED` being the default."],["The `pinUnexpandedResults` field, when set to `true`, ensures that unexpanded search results appear before expanded ones."],["The JSON representation is used to set conditions and to select whether or not to pin unexpanded results."]]],[]]