Guides
/
Managing results
/
Refine results
/
Faceting
Jun 13, 2024
How to declare attributes for faceting in the dashboard
On this page
Algolia lets you create categories based on specific attributes so users can filter search results by those categories For example, if you have an index of books, you could categorize them by author and genre. This allows users to filter search results by their favorite author or discover new genres.
To enable this categorization, first declare your attributes for faceting. To do this:
- Go to the Algolia dashboard and select your Algolia application.
- On the left sidebar, select Search.
-
Select your Algolia index:
- On the Configuration tab, click Facets (in the Filtering and faceting section).
- In Attributes for faceting, click Add an Attribute
-
Set the attribute as:
- searchable if you want to use the attribute for both searching and filtering. For example, if a product has a
color
attribute, users can search for products of a specific color and also filter search results by color. - filter-only if you want to use the attribute only for filtering.
- not searchable if you want the attribute to be used only as a facet.
For more information, see Difference between facets and filters
- searchable if you want to use the attribute for both searching and filtering. For example, if a product has a
- Click Review and Save Settings
See also
Did you find this page helpful?