Facet Filters
Facet filters are the sidebar next to the results of your hosted search page. Visitors narrow the results with a click: a category, a brand, a price range, a period, the length of a video. Each value shows how many results it has, so visitors know what they will get before they click.
You choose which fields become filters and how they look. Opensolr reads the values from your index; there is nothing to fill in by hand.
Where you set them
In the Control Panel: your index, WebCrawler tab, Settings, Search Facet Filters, Configure Facet Filters. The window that opens is Facet Filter Mapping.
- Set up your facets: tick the fields, pick a widget, write a label, put them in order.
- The five widgets: List, Min/Max Slider, Duration, Date Range Picker and Hierarchical.
- Which fields can be facets: the ones Opensolr fills for you, and your own.
When the sidebar shows
- As soon as at least one facet you turned on has values for the search. A facet with nothing to show for a search is left out.
- On your hosted search page and wherever you embedded it. The embed code needs no change;
data-sidebar="off"hides the sidebar (Embed code options). - On a phone, it opens with a Filters button above the results.
Every facet except Hierarchical ones is also offered in the sort list. Building your own search page on your Opensolr Index? Facets from code: Faceted navigation and filtering.
Facet filter pages
- Facet filters overview
- The five widgets
- Set up your facets
- Which fields can be facets