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"]],[["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-03-21 UTC."],[[["The latest version available for the `SearchRequest.Types.SearchMode` is 2.12.0, which is part of the Google Cloud Retail V2 API."],["This page provides a historical record of the `SearchRequest.Types.SearchMode` enum across multiple versions, ranging from version 1.0.0 to the latest 2.12.0, for the Retail v2 API."],["The `SearchMode` enum defines three possible states for search requests: `FacetedSearchOnly`, `ProductSearchOnly`, and `Unspecified`, each dictating how the search is executed and the type of results returned."],["The `FacetedSearchOnly` mode disables product search, requiring facet specifications to be set and returning only facet information."],["`ProductSearchOnly` mode disables faceted search, only conducting product search and only returning product search results."]]],[]]