Guides / Solutions / Ecommerce / Business user guide / Initial configuration

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

Step 1: Declare attributes for faceting

  1. Go to the Index page in the Algolia dashboard
  2. Select the index which you want to configure
  3. Go to Configuration

    Add attributes for faceting

  4. In the Filtering and Faceting section, select Facets

    Add attributes for faceting

  5. In the Attributes for faceting section, select Add an Attribute to add an attribute you want to use as a facet

    Add facets.

    Before you can declare attributes as facets in the dashboard, your engineering team needs to configure them.

  6. Set each facet attribute as:

    Select facets to be searchable, not searchable, or only for filtering

  7. Review and save the changes

Step 2: Retrieving facets

  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 values by their count or alphabetically

    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.

Step 3 (optional): Tweaking facet values and values per facet limits

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

Increase the maximum values per facet and maximum facet hits you can retrieve.

  • 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.

Step 4: Ordering and merchandising facet values

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.

Did you find this page helpful?