Skip to main content
If you encounter an issue, ensure your Algolia Magento Open Source and Adobe Commerce extension is up to date. A new release may fix your issue. You’ll also get better performance and security. To check the extension’s version, check the GitHub repository. Compare this version to the version stated in the etc/module.xml file in your Magento installation: Magento extension version number in module.xml file You can also check for updates from Algolia’s dashboard. Find the API clients using your indices by going to Monitoring > Operations > API Client. If a new version is available, it will be displayed next to the version in use. Magento extension version number in the Algolia dashboard
To update the extension, read the upgrading guide.

Understand how your Magento configuration determines the number of indices to create

You must add your account credentials when setting up the extension for the first time. The extension will then automatically add all the indices your account requires. You can check which indices have been created from Algolia’s dashboard if you wish.

Sorting

By default, the extension creates three replicas for each product . These replicas are directly related to the sorting configuration in the InstantSearch section. Screenshot of a sorting table with three rules: 'price' ascending, 'price' descending, and a timestamp attribute descending, each with a label and delete icon. Modifying sorting directly affects the number of created .

Indices

Algolia’s dashboard provides insight into how the Magento extension uses indices. Indices created by the extension depend on how Magento configures indices for products, categories, and additional sections. The index name is influenced by the index name prefix defined in the Magento configuration. If you use the extension in production, you probably also want a staging or development environment. Use meaningful prefixes so you can tell which index belongs to which environment. For example: prod_magento, staging_magento, and dev_magento. Configure your Adobe Commerce and Magento Open Source setup correctly to keep indexing accurate. This helps you predict the number of indices created by the Algolia AI Search & Discovery extension. If the number of indices doesn’t match your expectations, check your configuration settings. Screenshot of the 'Indices' page showing 380 indices with columns for 'Index', 'Last build', and 'Records', and a 'Create Index' button.

Incorrect configuration

The following are examples of Magento configurations that can lead to an unexpected number of indices.

Different configuration on store view or website level

Magento lets you define a default configuration and a configuration for a specific store view or website. You can configure some extension settings this way too. For example, you can sort differently on two websites in the same Magento installation. This creates a different number of indices for each website. Magento only shows the default configuration on the settings page. As a result, admins can miss this manual configuration, especially with more than one administrator. If an unexpected number of indices is created, ensure no unwanted configuration has been set by switching from the default settings to a store view or a website-specific configuration. Screenshot of a configuration section showing a "Store View" drop-down menu set to "Default Config" with a help icon.

All stores configuration

The extension adheres to Magento’s list of websites, stores, and views. Find these by going to Stores > Settings > All Stores. If you have a multilingual site that uses the extension, every language needs its own indices. This can significantly increase the total number of indices. Screenshot of the 'Stores' page showing two records for 'Main Website' with store views 'Default Store View' and 'french.'

Customer group configuration

By default, Magento creates a set of four customer groups (General, Not logged in, Retailer, and Wholesale). Third-party extensions can create their own customer groups in the Magento installation, sometimes even hundreds of them. The extension lets you manage customer groups in the advanced section of the configuration. Be careful when enabling this feature. Every customer group will create new replica indices for every sort-by-price option, per store. If a third-party extension creates hundreds of customer groups, Algolia’s extension will create hundreds more indices per store view. Screenshot of the 'Customer Groups' page showing a table with four records and an 'Add New Customer Group' button.

Out of sync data

If it seems like data isn’t being pushed to Algolia’s servers:
  1. An error may have occurred during the indexing process: investigate the logs
  2. If the indexing queue is turned on, there could be a queue processing problem
  3. The product or category being indexed has a particular status preventing it from being indexed.
Read about the requirements for a product or category to be indexed in the indexing guide.

Debug missing products or categories

If your data isn’t showing up but meets the requirements listed on the indexing page:
  1. Go to the Magento back-office and find the product or category missing.
  2. Save the item without changing anything. This should trigger the Magento save event and send any data that needs updating to Algolia’s servers. This also works if the indexing queue is off.
  3. Go to Algolia’s dashboard.
  4. Check if the extension has updated the product or category. Find the index, look up the product/category and check the algoliaLastUpdateAtCET attribute. This attribute contains the date and time the records were updated (Central European Time). Screenshot of 'algoliaLastUpdateAtCET:' label with the value '2018-10-24 11:09:58'.
  5. If products are still out of sync, check the logs on Algolia’s dashboard: go to API Monitoring > Search API Logs. Reindexing triggers a POST request that should appear at the top of the list. The URL should be something like /1/indexes/[INDEX_NAME]/batch. Click the link to see the request details. If you see the attributes in the Request body tab, under the AddObject action, the extension sent the record to Algolia’s servers. Screenshot of the 'Logs' tab showing recent 'POST' requests with '200' status codes for product batch indexes.
  6. If the attributes aren’t updated, and the algoliaLastUpdateAtCET attribute in the index’s object isn’t updated, use the SKU reindexing form. This form gives you feedback on why the product hasn’t updated.

Third-party extensions

The extension uses Magento’s plug-in system to apply Algolia’s logic to the following Magento classes:
  • Magento\Catalog\Model\ResourceModel\Product
  • Magento\Catalog\Model\Product\Action
  • Magento\CatalogInventory\Model\ResourceModel\Stock\Item
  • Magento\Catalog\Model\ResourceModel\Category
  • Magento\Catalog\Model\Category\Action
Any third-party extension that updates resources without triggering Magento’s save events on these classes breaks real-time catalog updates. To fix this, trigger reindexing by hand.

Updates aren’t sent to Algolia

If the data in Algolia’s dashboard has unexpected values, look at the attributes specific to the store view or website. The extension respects settings at the store view and website level. These may override the default settings. To check this, switch to the store view or website setting using Magento’s store switcher, in the top-left corner of the window. Screenshot of a product form with fields for 'Enable Product', 'Attribute Set', 'Product Name', and 'SKU', and 'Add Attribute' and 'Save' buttons.

Investigate the logs

1

Check for temporary Algolia indices

Figure out if your indexing process generates errors. Since the process can be asynchronous, errors can happen without you being aware.During the asynchronous indexing process, the extension generates temporary indices suffixed by _tmp. For example, if the main product index is magento_products_default, the extension will generate an index named magento_products_default_tmp.This feature is enabled by default. To change this setting, go to Stores > Configuration > Algolia Search > Indexing Queue / Cron and update Use a temporary index for full products reindex.
The temporary indices are created to do an atomic reindex to prevent production indices from being corrupted.
Because the temporary index is only swapped after the whole process completes, if there is an error, the temporary index will still exist. Check Algolia’s dashboard to see if any indices end with a _tmp suffix and haven’t been updated in a while.
2

Review the logs

All errors are logged by default in Magento. The var/log folder in the Magento installation contains two log files:
  • system.log
  • exception.log
If you want to see if anything gets logged during the indexing process, run the following command from the terminal (from the root folder of the Magento installation) before re-running the indexing process again:
Command line
The error messages in the log will help you pinpoint the issue’s source.
You can also request more detailed logging during the indexing process.

Detailed logging

Enable detailed logging to provide additional information about how Magento indexes your data. As of version 3.15 this information is written to var/log/algolia.log. To monitor this during indexing operations, run the following command from the root folder of the Magento installation:
Command line

deleteObject requests

Algolia issues a deleteObject request when the indexing process determines the product shouldn’t be visible on the storefront. It also happens if Algolia can’t find a matching record in the Magento price index. If this is unexpected, use detailed logging to find the cause and fix it. After enabling logging, inspect the logs for the message BEGIN REMOVE FROM ALGOLIA: Screenshot of log entries showing an 'Algolia. INFO' message that indicates a 'BEGIN REMOVE FROM Algolia' operation with 'Product IDs: 2' highlighted. If record removal is happening for products that should normally be visible, enable automatic price indexing.

The queue may be stuck

If the data in your index isn’t up-to-date, your indexing queue may be stuck. The queue relies on one of Magento’s indexers, added by the extension: the algolia_queue_runner. Ensure the Magento indexer is “ready” by running the following in the command line:
Command line
If the status of the queue is “processing” for a long time, it may need to be reset by running the following in the command line:
Command line

Monitor the queue

From version 1.8 of the extension, there’s a monitoring page (at Stores > Algolia Search > Indexing Queue). This page contains a grid displaying the contents of the indexing queue. It lets you monitor the number of operations the queue needs to perform. Screenshot of the 'Algolia Indexing Queue' page showing a table with six records, a yellow status message, and a 'Clear Queue' button. You can see details of each operation by clicking the ‘view’ link. Any error occurring during the job is logged in the Error Log attribute. Screenshot of job information details showing fields like 'Job Id', 'Status', 'Class', 'Method', and 'Data' with corresponding values. At the top of the page, the recommendations section helps you configure and optimize the queue. If the indexing queue works as expected, the number of jobs should drop every 5 minutes. Refresh the page to check this. If the number of operations doesn’t drop, check that the queue is set up correctly. Starting with version 1.8 of the extension, any failing operation that reaches the maximum number of retries goes into the algoliasearch_queue_archive table. Check this table for error logs too, since it stores the last error along with the job.

Migrate to granular virtual replicas

Starting with version 3.14.0 of the extension, you can turn on virtual replicas for individual sorting strategies. You can set this at the attribute level for the default, website, or store view scope. Previous versions of the extension used a single “Yes/No” setting to turn on virtual replicas. This setting wasn’t store-scope sensitive: turning it on changed all sorting replicas from standard to virtual. This caused problems: a Magento instance with many replicas could exceed the limit of virtual replicas per index. This is especially true for stores with many customer groups, since the extension must create a sorting replica index for each pricing group. You can now set up your replicas how you want, without writing any code.

Migrate old configuration data

You must migrate this old configuration when you upgrade to 3.14.x. Problems can arise if the previous replica configuration isn’t correct. To avoid this, run the following command when you upgrade:
Command line
This process tries to migrate to the new configuration. It alerts you if it finds any problems with the upgrade. Setup upgrade fails due to virtual replica exceeded error If this happens it’s best to reset all replicas to the standard configuration with algolia:replicas:disable-virtual-replicas and rerun setup:upgrade.

CLI tools

A set of CLI tools can help with this. Run the following command to see what’s available:
Command line
Screenshot of a terminal output showing available 'Algolia' CLI commands and their descriptions. To get help on an individual command run:
Command line
The command to reset all sorting strategies to standard replicas is:
Command line
Screenshot of a terminal with a 'Are you sure to proceed? (y/n)' prompt, command output, and sync messages.

Magento admin updates

When you make changes to the Algolia configuration in your store’s Admin, such as adding sorting strategies or enabling customer group pricing support, you may run into the replica limit again. Screenshot of a configuration page with an error: 'Replica limit exceeded for German Storefront (Store ID=2). Reverting to previous configuration.' The extension doesn’t let you save an invalid configuration: make the needed adjustments and try saving your changes again.

Rebuild replica data

Your store’s Admin automatically creates, modifies, and deletes standard and virtual replicas. If your replica configuration in Algolia becomes corrupted or out of sync with Magento, or if the save operation from your store’s Admin doesn’t work, you can rebuild your replica configuration with the following command:
Command line

Understand the Algolia replica configuration

The extension updates the Algolia index replicas setting for the matching product index for each Algolia-enabled store view in Magento. Typically, the extension creates one replica index for each sorting strategy defined in your store’s Admin: Screenshot of a 'Sorts' table with columns for 'Attribute,' 'Sort,' 'Label,' and 'Action,' showing sorting options for 'price' and 'a timestamp attribute.' But if the store has customer groups enabled, the extension multiplies the number of pricing-sort indices by the number of customer groups in Magento. Other processes, such as those used by Merchandising Studio and the Algolia dashboard, may also create replicas besides the ones the extension creates. To stop the extension from overwriting other Algolia indices, don’t give them a prefix that might look like it’s managed by Magento. Here’s an example of how various replica configurations might look. The Magento-managed indices use the prefix magento2_dev_. Example of an Algolia replicas setting configuration This example is for illustration only. The Magento-managed indices use the prefix magento2_dev_. See also: Shared Catalogs.

How to update the PHP client connection time

To access the configuration page for Algolia in your Magento project, go to Stores > Algolia Search > Advanced in the Admin panel. From there, you can modify the connection, read, and write timeouts.
Last modified on September 16, 2026