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-06-27 UTC."],[[["\u003cp\u003eQuery expansion settings are determined by a \u003ccode\u003econdition\u003c/code\u003e field, which defines when expansion occurs.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003econdition\u003c/code\u003e field can be set to \u003ccode\u003eDISABLED\u003c/code\u003e, \u003ccode\u003eAUTO\u003c/code\u003e, or \u003ccode\u003eCONDITION_UNSPECIFIED\u003c/code\u003e, with \u003ccode\u003eDISABLED\u003c/code\u003e being the default.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003epinUnexpandedResults\u003c/code\u003e field, when set to \u003ccode\u003etrue\u003c/code\u003e, ensures that unexpanded search results appear before expanded ones.\u003c/p\u003e\n"],["\u003cp\u003eThe JSON representation is used to set conditions and to select whether or not to pin unexpanded results.\u003c/p\u003e\n"]]],[],null,["# QueryExpansionSpec\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n- [Condition](#Condition)\n\nSpecification to determine under which conditions query expansion should occur.\n\nCondition\n---------\n\nEnum describing under which condition query expansion should occur."]]