Skip to main content
This is the React InstantSearch v7 documentation. If you’re upgrading from v6, see the upgrade guide. If you were using React InstantSearch Hooks, this v7 documentation applies—just check for necessary changes. To continue using v6, you can find the archived documentation.
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.
TypeScript
With the useConnector Hook, you can turn this connector into a useAutoFiltering Hook.
TypeScript
And finally, you can build the UI around the hook.
React
If you have a standard React InstantSearch implementation, you can copy and paste both the preceding snippets into your app. However, ensure you tweak the final AutoFiltering component to fit your design. You can then place AutoFiltering in your app.
Last modified on July 22, 2026