Configure the queue
To enable the indexing queue in production environments (recommended), go to Stores > Configuration > Algolia Search > Indexing Queue/Cron in the Magento Admin. Magento stores queued operations in thealgoliasearch_queue database table.

- Turn off automatic indexing
- Set Number of jobs to run each time the cron is run to 10.
- Run the indexing queue manually.
- Measure how long the queue processing takes.
- If it takes less than 4 minutes, increase the number of jobs.
- Repeat from step 3 until processing takes longer than 4 minutes.
- Turn automatic indexing back on.
For more information about how to configure cron jobs and groups,
see the official Adobe documentation.
Failed operations
If an operation fails while processing the queue, the Algolia AI Search & Discovery extension adds it back into the queue. To avoid endless retries, change Number of times to retry processing of queued jobs.Temporary index usage
In version 3.17.0 and later, you can turn off temporary index creation during product reindexing. To change this setting, go to Stores > Configuration > Algolia Search > Indexing Queue / Cron and turn off Use a temporary index for full products reindex. This setting is on by default. Turning it off changes indexing behavior as follows:- Live updates:
saveObjectsoperations update the production index so that changes appear without waiting for a full reindex. - Simplified queue:
MoveIndexoperations aren’t required or added to the queue. - Parallel processing: full reindexing and updates can run simultaneously on the production index.
Process the queue
After enabling the queue, set up queue processing.Run the indexing queue automatically
The preferred way to handle the queue is by processing it at a regular time interval.Automatic queue processing (extension version 3.16 and higher)
Automatic queue processing (extension version 3.16 and higher)
Turn on Stores > Algolia Search > Indexing Queue > Use Magento built-in cron in the Magento Admin.
This adds 
These jobs run in the 
algolia_queue_process jobs to the cron_schedule database table based on the expression (the default is */5 * * * *).
algolia cron group.
To configure the group, go to Stores > Configuration > Advanced > System > Cron (Scheduled Tasks).
Automatic queue processing (extension version 3.15 and lower)
Automatic queue processing (extension version 3.15 and lower)
Use the
algolia_queue_runner indexer by adding the following crontab entry:Run the indexing queue manually
To trigger the indexing jobs manually, run:Process the full queue
To process all operations and empty the queue, add the environment variablePROCESS_FULL_QUEUE=1 to the command:
Clear the queue
To clear your queue, go to Stores > Algolia Search > Indexing Queue in the Magento Admin and click Clear Queue to remove all jobs from the queue. You can also empty the queue in the database by truncating thealgoliasearch_queue database table.
However you clear your indexing queue,
perform a full reindex afterwards so that your Algolia indices are up to date.
Indexing queue logs
To check the performance of your indexing queue, review thealgoliasearch_queue_log database table.
Each row represents one process of the queue, whether from the cron job or a manual run.
The duration column shows the time in seconds needed to process the indexing queue.
To account for extra processing time and server load variations,
the duration should be at least 1 minute shorter than your cron job interval.
For example, if you set the cron interval to 5 minutes (300 seconds),
the duration of the indexing jobs should be less than 240 seconds (4 minutes).
If the queue finishes well under the recommended duration, increase the number of jobs to process per run.
If the queue takes longer than the recommended duration, reduce the number of jobs.
Find this setting in Stores > Configuration > Algolia Search > Indexing queue / Cron > Number of jobs to run each time the cron is run.
To see the indexing queue logs, go to Stores > Algolia Search > Indexing Queue > See Run Logs in the Magento Admin.
Indexing queue archives
Go to Stores > Algolia Search > Advanced > Indexing Queue in the Magento Admin and set Enable enhanced archive to Yes. This archives processed jobs and preserves stack traces for troubleshooting.Magento indexing modes
Magento indexers can run in two modes:Update on Save or Update on Schedule.
For the Algolia AI Search & Discovery extension,
keep the queue runner on Update on Save.
You can set the following indexers to Update on Schedule:
| Indexer name | Indexer ID |
|---|---|
| Algolia Search Products | algolia_products |
| Algolia Search Categories | algolia_categories |
| Algolia Search Pages | algolia_pages |