Integrations / Shopify

Add Query Suggestions to Autocomplete

Since December 31, 2023, apps can’t modify the code of Shopify themes. For more information, see The Asset API resource in the Shopify documentation. As an alternative, the Algolia AI Search and Discovery app comes with Shopify App Embed and App Blocks to integrate Autocomplete and InstantSearch. To get started, see Quickstart and Algolia configuration.

The default Shopify templates include Autocomplete search out-of-the-box. This lets users search across selected indexes for products, collections, blogs, or pages.

Algolia Query Suggestions generate suggested search terms based on popular searches.

If you want to use Query Suggestions in the Algolia AI Search & Discovery app, you must:

  • Use an Algolia application with the Query Suggestions feature turned on.
  • Enable Query Suggestions for Autocomplete.

Enable Query Suggestions for Autocomplete

  1. Open the Search options tab in the Algolia AI Search & Discovery app
  2. Go to the Autocomplete configuration options section
  3. Select the Enable Query Suggestions option.

The Query Suggestions options in the Autocomplete configuration screen in the Shopify admin

By default, the engine uses an index name computed with your index prefix. If the index name doesn’t correspond to your Query Suggestions index name, you can replace it.

  1. Click Save. Your Autocomplete menu should now show Query Suggestions.
Did you find this page helpful?