Autocomplete, InstantSearch, and Recommend in the Algolia app blocks now support version 5 of the Algolia API client.
Most stores only need to switch the search client version setting to Version 5.
If you use custom storefront JavaScript, follow the version 5 upgrade guide.
Support for version 4 ends on August 14, 2026.
- If you want to show a data subset differently from all matching products or articles. For example, showing all on-sale products in a separate list, or only show help articles.
- You want to support searching data from other sources in your autocomplete menu.
beforeAutocompleteOptions hook.
Example of sale items
This example shows how to display on-sale products in a separate list (in addition to all other results). You can achieve this by creating a source that searches into your product index, and applies a filter to only include items where thenamed_tags.onSale attribute is true.
JavaScript