Resources

Configuring Faceting

Faceted search is a way of classifying records, allowing users to narrow down results. You can think of facets as filterable categories.

  1. Go to the Index page in the Algolia dashboard
  2. Select the index which you want to configure
  3. Go to Configuration
    Index
  4. In the Filtering and Faceting section, select Facets
    Max facet hits
  5. In the Attributes for faceting section, select Add an Attribute to add an attribute you want to use as a facet
    Attributes for faceting
  6. Add note here: Note Before you can declare attributes as facets in the dashboard, your engineering team needs to configure them.
  7. Set each facet attribute as:
    Searchable
  8. Review and save the changes
  • Review and save the changes

  1. In the Attributes for faceting section, select Sort facet values by and choose between:
  • count—facet values are sorted by decreasing numbers of records with this facet value for a given query
  • alpha—facet values are sorted in alphabetical order
Sort facet value by

Note

The sort facet values by setting controls the order in which facet values are retrieved within each faceted attribute. This setting doesn’t impact how facet values are displayed in the user interface.


If you have many facet values, you can adjust these settings in the Attributes for faceting section.

Max values per facet
  • Max values per facet—By default, you can retrieve 100 values per facet. You can increase this limit up to 1,000.
  • Max facet hits—By default, you can retrieve 10 facet values at a time. You can increase this limit up to 100.

To merchandise facet values, for example, specific brands or categories, you can define the ordering of the facets and facet values in the UI from the dashboard.