Faceted Search¶
Faceted search (sometimes also called faceted navigation) allows users to navigate through a website by applying filters for categories, attributes, price ranges, and so on. The main idea behind faceted search is to present the attributes of the documents of the previous search result as filters, which can be used by the user to narrow down search results, along with calculating statistical counts to aid.
For example, let's search for all the lemon-lime drinks available:
-
Check Soft Drinks in the Category facet:
-
Check Lemon-Lime in the Flavor facet:
-
The search query is executed using these two facets. The search result returns the entries that are aggregated both in the Category facet and in the Flavor facet:
Muti-select faceting search¶
This policy allows you to select multiple values of the same facet, for example, using a checkbox.
How to implement multi-select faceting for nested documents in Solr
The muti-select faceting search policy is enabled by default and you do not need to activate it.
Faceted search configuration¶
To configure properties available for faceted search via Platform Manager:
- Click Stores in the main menu.
- In the next blade, select the required store.
- In the next blade, click on the Aggregation properties widget.
- Click on the available properties to be applied to filtering. There are two types of properties:
- Attributes: Displays and enables using all or selected values of the selected property for facet filters.
- Range: Enables aggregating facet counts across ranges of values. This type is applicable to the date, time, datetime, number, and money type fields.
- Click Save in the top toolbar to save the changes.
To edit a selecte property, click on it and configure the following fields: