Enable Users to Use Mutiple Facet Selection
You can implement multiple facet selection so that users can refine search results in the filters widget on the results page. Facets include categories, products, types of articles, and collections. Users can select multiple products and categories, and only one article type and collection, to filter a search.
Enabling multiple facet selection changes how search works in ways that benefits users.
-
Multiple facet selection displays all products and categories. Single facet selection displays only the facets that have a search result associated to them.
-
Multiple facet selection displays top-level facets and their first level children when the page loads. Single facet selection displays only the top level facets.
-
When users refresh the page, multiple facet selection returns to its original state. Single facet selection doesn't change when users refresh the page.
When a user select multiple facets, their search results will contain only documents that belong to all of the selections. For example, when users select product1, product2, category1, category2, document type1, and collection1 from the available facets, the results list displays only documents that belong to all their selections.
Selecting a facet automatically applies all of its children in the hierarchy. Selecting a facet does not apply its parent facet. Each selected facet shows as a separate entry in the filters widget, and users can remove facets. Search results update automatically whenever users change a facet selection.
The current implementation does not include the multiple facet selection functionality on the results page by default. You can implement multiple facet selection by adding the enable multi facet attribute to the facet widget.