All Live Search facets are dynamic and appear in the Filters list only when relevant. The list of available facets changes according to the products returned. The following characteristics affect their presentation and behavior:
At query time, Live Search generates the search results in groups of intelligent and popular facets.
Facets that are rendered for the Commerce storefront are processed by the search adapter, which routes requests and renders the results in the storefront. All Commerce storefront facets are sorted alphabetically with single-select options, regardless of the input type that is assigned to the corresponding attribute. Facets that are available in the storefront are rendered according to the current theme and reflect any customizations made to the presentation of layered navigation.
In contrast, headless implementations are processed by the API and support additional options. Headless facets can be sorted alphabetically or by count, and can have either single- or multi-select options.
For headless implementations, facets can be defined as
single select or
multi-select with logical operators that determine the returned product set. For example,
green AND blue or
green OR blue.
|Single select||A single-select facet offers multiple options, but allows the shopper to choose only one value.|
|Multi-select (or)||(Headless only) Shoppers can choose more than one option and returned product(s) can match any selected value. Example:
|Multi-select (and)||(Headless only) Shoppers can choose more than one option, and returned products must match all selected values. Example:
For Commerce storefronts, the facet label is determined by the Attribute Properties. For stores with multiple views, additional labels can be defined under Manage Labels. For headless implementations, labels are edited from the faceting workspace.
All facets rendered for the storefront are sorted alphabetically. For headless implementations, facets can be sorted alphabetically or by count.
|Alphabetic||In the storefront Filters list, facets are sorted alphabetically.|
|Count||(Headless only) For headless implementations, facets can also be sorted by the number of values found per facet in the current set of returned products.|