Stay organized with collections
Save and categorize content based on your preferences.
Query expansion is the incremental loosening of query constraints to include more results when none or too few are initially found. This leads to an adjustment of the result size per query.
Query expansion tutorial
This tutorial shows you how to enable the query expansion feature. When a shopper uses an ambiguous or a multi-word search phrase, they can get an empty response. After turning on query expansion, the request is analyzed and the expanded list of products based on the parsed search query gets returned.
To follow step-by-step guidance for this task directly in the
Cloud Shell Editor, click Guide me:
For example, if you search "Google Pixel 5" without query expansion, you might
only get "google_pixel_5" in the result. With query expansion, you might get
"google_pixel_4a_with_5g", "google_pixel_4a" and "google_pixel_5_case" as well.
[[["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-03 UTC."],[],[]]