Skip to main content
Automatic Filtering and Boosting applies a category filter when users enter a . You can use Query Categorization to predict categories for your most popular queries. If you enable Automatic Filtering and Boosting the categories are automatically applied as filters.

Control Automatic Filtering and Boosting in your UI

If you want to have Automatic Filtering and Boosting on or off for all searches, you only need to enable the feature to filter the results automatically. If you want to let users turn Automatic Filtering and Boosting on or off, you can build an InstantSearch widget. This widget should inform users that the results are filtered. The widget should also let users remove any applied filters.

Build a widget for Automatic Filtering and Boosting

1

Check the search response

The search response includes the following properties if Automatic Filtering and Boosting is enabled:
JSON
If filters are applied to the query, they’re listed in the facetFilters property.
JSON
2

Let users remove applied filters

To remove filters applied with Automatic Filtering and Boosting, you need to turn the feature off for the current query using the enableAutoFiltering API parameter.
JSON
3

Turn on automatic filtering and boosting for new queries

To keep Automatic Filtering and Boosting for other queries, check for a query change and then set enableAutoFiltering to true.

Implementing the widget

The following custom connector implements all steps to let users turn off Automatic Filtering and Boosting for a search query.
The connector requires the Algolia search helper.
Use this InstantSearch connector to create a widget.
If you copy the code snippets into your implementation, check the widget render function to adapt to your design. You can add the widget to your UI:
JavaScript
Last modified on July 22, 2026