Only faceted search will be performed. The product search will be
disabled.
When in this mode, one or both of
[SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs]
and
[SearchRequest.dynamic_facet_spec][google.cloud.retail.v2.SearchRequest.dynamic_facet_spec]
should be set. Otherwise, an INVALID_ARGUMENT error is returned. Only
[SearchResponse.Facet][google.cloud.retail.v2.SearchResponse.Facet] will
be returned.
[SearchResponse.SearchResult][google.cloud.retail.v2.SearchResponse.SearchResult]
will not be returned.
ProductSearchOnly
Only product search will be performed. The faceted search will be
disabled.
Only
[SearchResponse.SearchResult][google.cloud.retail.v2.SearchResponse.SearchResult]
will be returned.
[SearchResponse.Facet][google.cloud.retail.v2.SearchResponse.Facet] will
not be returned, even if
[SearchRequest.facet_specs][google.cloud.retail.v2.SearchRequest.facet_specs]
or
[SearchRequest.dynamic_facet_spec][google.cloud.retail.v2.SearchRequest.dynamic_facet_spec]
is set.
Unspecified
Default value. In this case both product search and faceted search will
be performed. Both
[SearchResponse.SearchResult][google.cloud.retail.v2.SearchResponse.SearchResult]
and [SearchResponse.Facet][google.cloud.retail.v2.SearchResponse.Facet]
will be returned.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis page provides reference documentation for the \u003ccode\u003eSearchRequest.Types.SearchMode\u003c/code\u003e enum within the Google Cloud Retail v2 API, detailing the different search modes available.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchMode\u003c/code\u003e enum defines three search behaviors: \u003ccode\u003eFacetedSearchOnly\u003c/code\u003e, which limits the search to facets; \u003ccode\u003eProductSearchOnly\u003c/code\u003e, which restricts it to product results; and \u003ccode\u003eUnspecified\u003c/code\u003e, which enables both faceted and product searches.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation covers versions 1.0.0 through 2.12.0, with 2.12.0 being the latest, illustrating the evolution of the \u003ccode\u003eSearchMode\u003c/code\u003e feature across various releases.\u003c/p\u003e\n"],["\u003cp\u003eThe namespace for the provided documentation is \u003ccode\u003eGoogle.Cloud.Retail.V2\u003c/code\u003e, and the enum is located in the \u003ccode\u003eGoogle.Cloud.Retail.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,[]]