Skip to main content
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.
Shopify Locations is a feature to track inventory quantities by physical locations. A location can be any place where you change inventory quantities, such as retail stores or warehouses. Indexing locations and their inventory quantities lets you add location-based features. For example, users can search and filter by location, or use BOPIS (buy online, pick up in store).

Turn on inventory location indexing

Make sure you set up your store with more than one location on Shopify. This results in extra API requests to Shopify. These extra requests can delay indexing if Shopify imposes rate limits. To turn on inventory location indexing:
  1. In your Shopify admin, open the Algolia AI Search & Discovery app.
  2. Go to the Indexing tab.
  3. In the Products section, select Index inventory locations (BETA) and click Save. This triggers a product reindexing. Update product indexing settings in the Algolia AI Search & Discovery app
    If you see a message with a request for additional read access permissions, click Update Store Permissions.
    Additional permissions required to enable locations indexing
  4. When the reindex is complete, check your products records for the new locations_inventory attribute.

Schema

Inventory locations are individual key-value pairs in the locations_inventory attribute of each product record. The key is the location ID, auto-generated by Shopify. The value is the inventory quantity at that location. The following example shows the location_inventory attribute with three locations:
JavaScript

Next steps

To share feedback about this beta feature, send an email or join the Community.
Last modified on September 16, 2026