Types of Facets
Live Search uses a variety of facets types and they 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:
-
Pinned facets - The most commonly-used facets can be pinned to the top of the list. The remaining facets are listed in Sort type order after the pinned facets.
-
Dynamic facets - Product attributes that finds most relevant to a product set and query. The calculation takes into account the attribute metadata of the entire catalog and determines at query time the most relevant facets for the query.
note note NOTE If you notice that timeout errors are appearing in the GraphQL query response after creating dynamic facets, change all facets to pinned to see if that resolves the performance issues. -
Popular facets - Product attributes that are most often present in search results.
-
Price facets - Return products by price range. You can specify the number of selections and the price range interval on the Settings workspace.
At query time, Live Search generates the search results in groups of dynamic and popular facets.
Storefront and headless options
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, 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.
Facet labels
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.
Sort type
All facets rendered for the storefront are sorted alphabetically. For headless implementations, facets can be sorted alphabetically or by count.