Algolia lets you create categories based on specific attributes so users can filter search results by those categories. For example, if you have an 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 run the code examples on this page, install the latest API client. To enable this categorization, declare the attributesDocumentation Index
Fetch the complete documentation index at: https://algolia.com/llms.txt
Use this file to discover all available pages before exploring further.
genre and author as attributesForFaceting:
searchable modifier.
filterOnly to reduce the index size and improve search speed.
For example, you could automatically filter what genre the users can search based on the section of your website they’re on (without displaying genre as a clickable filter).
:) in attribute names that you want to use for faceting because the filters syntax relies on that character as a delimiter.