
Configuration
To configure the InstantSearch page, go to Search experience in the app and select the storefront channel you want to configure. In the InstantSearch section, use the toggle to turn InstantSearch on or off for the channel. Turning it on creates the search results page and applies the default setup to the channel’s live themes.
- Results per page and Filter values shown control how many products and filter values are displayed.
- Search form CSS selector targets your theme’s search form so it routes to the results page.
- Search form attribute stores the HTML attribute that contains the route to the search results page.
The default value is
data-url. - Show out-of-stock products includes products with no inventory in results.
- Distinct results collapses variants of the same product into one result.
/search-results.
InstantSearch doesn’t load on nested paths, such as /shop/search-results.
When you change any of these settings, a bar with unsaved changes appears.
Select Save changes to apply them to your storefront.
Customize filters
Filters (facets) let shoppers narrow down search results. By default, the InstantSearch page includes a Category filter and a Price slider based on thedefault_price attribute.
To add a new filter,
select + Add filter in the Filters shoppers can use list, then
enter the title to display, select the attribute to use, and pick a display type.
Configure attributes for faceting.
Make the facet searchable to let users enter a value to filter results for that facet.
For example: color or size.
Filters can be displayed in these ways:
- Conjunctive list. Users select multiple options. All selected criteria must match for items to appear.
- Disjunctive list. Users choose any combination of options. Items matching any selected criteria show.
- Input range. Users specify a numeric range. For example, a price or date range, where items within that range display.
- Slider. Users adjust a value along a scale. For example, updating the price or rating.
When you save filter settings in the BigCommerce app,
it updates the
attributesForFaceting setting of your Algolia index.
Any facets configured outside the app, for example, in the Algolia dashboard or through the API, are preserved.
If you remove a filter from the app, it’s also removed from your Algolia index settings.Customize sort order
By default, InstantSearch sorts results by relevance, which means products are ranked based on how well they match the user’s . No other sort options are available unless you configure them. Custom sort order lets you give users more ways to sort search results, such as by price, newest arrivals, or popularity. It helps them find products more easily based on their preferences. To enable additional sort options, add replica indices. Each replica index represents a different sort order (for example, “Price: Low to High” or “Newest First”). Once your replica indices are set up, you can add them as sort options in the InstantSearch settings. To add a new sort order:- Select + Add sort order in the Sort orders list.
- Enter the title you want to display for the sort order (for example, “Price: Low to High”).
- Select the corresponding replica index from the list.
Limitations
- Create a separate replica index in Algolia for each sort order you want to offer. This may increase your index count and usage.
- If no replica indices are added, only the default Relevance sort is available.
- Changes to sort options may take a few moments to appear on your storefront, depending on cache and propagation times.
- Removing a replica index from Algolia without updating your InstantSearch settings may cause errors or missing sort options.
InstantSearch categories
InstantSearch categories let you display InstantSearch on category pages with different filters and settings for each category. To enable InstantSearch categories, you need:- InstantSearch turned on for the channel
- At least one category in your shop
- At least one category with products in it.

- Refresh to update the category data from BigCommerce
- Save changes to send the changes to the Algolia for BigCommerce integration.
category_below_header.
Category page CSS selector targets the main element of your category page.
Customize InstantSearch categories filters
Category filters let you display different filters for different categories in your shop. If you don’t customize the filters for a category, it inherits the default InstantSearch filters. To add, remove, or reorder a category’s filters, select Edit filters next to the category, then select Save changes to apply them. Filter data, including the ordering, is then sent to BigCommerce metafields (and pulled from there when the category page is loaded).Limitations of InstantSearch categories
When turning InstantSearch categories on or off, it can take 30 or more seconds for the changes to be applied to your shop (due to BigCommerce API rate limitations). The hierarchical category facet supports up to eight category levels (categories.lvl0 to categories.lvl7).
Deeper category trees aren’t shown in the facet.