Empty search results
When Algolia for Magento is installed, it automatically fetches the Magento product data, transforms it to a JSON structure and pushes this data to Algolia. If any problems are encountered, please make sure that:- The App ID and API Keys are correct
- The queue is running in case automatic indexing is turned on.
Outdated search results
With automatic indexing turned on, the indexing happens asynchronously.
It may take some time for your data to be updated.
Network error
Network errors are typically resolved automatically thanks to the queueing process. If the network error persists over multiple queue runs, there may be a problem with the underlying infrastructure of the Magento app. When in doubt: if the problem lies with the Algolia infrastructure, check the status page for any issues.Memory error
Magento has known memory leaks that can lead to problems as memory usage increases. These issues become more pronounced with larger records. For this reason, Algolia has a maximum record size of 10 KB to 100 KB, based on your plan (10 KB maximum for the Build plan). Records that exceed this limit result in a “Record is too big” error.Record size
If the total size of the index exceeds this limit, you should turn on automatic indexing through the queue. The cron job running the indexing breaks up large indices into chunks within the size limit. When indexing without the cron job, or with theEMPTY_QUEUE=1
argument in the job, the index size isn’t checked.
Failed reindexing jobs
To see if any of the created jobs have failed, check thealgoliasearch_queue
table.
If a job fails, it needs to be restarted.
This will continue the indexing job from where it stopped, so it won’t run it in its entirety again.
If the queue is enabled, the restart will happen automatically.
The indexing job can be restarted manually by pressing the restart link.
This can be found by clicking the index on the Magento Dashboard.
Incomplete search results
In case some products are missing from the search, note that the Algolia extension doesn’t index products for which one of the following statements is true:- The product is deleted
- The product is turned off
- The product is out of stock and the web shop hides products that are out of stock
- The product isn’t visible in the search and in the web shop
Price index dependencies
Even if the product meets all of the criteria for visibility, products still might not sync with Algolia if the core Magento “Product Price” index isn’t up to date. To ensure that the price index is up to date, it can be run before executing the Algolia index with this Magento CLI command:
Sometimes records may be missing in the price index even if the index appears to be valid.
deleteObject
request in the corresponding Algolia index.
This means certain products may “disappear” from the website.
To determine if this is happening, carefully review the logs.
If you’ve verified that this is happening, and running the catalog_product_price
before the Algolia indexer isn’t practical, enable automatic price indexing from the extension’s advanced configuration:
Stores > Configuration > Algolia Search > Advanced > Advanced > Enable automatic price indexing

Parsing errors
This error can occur during indexing when the indexed data fails to encode to JSON.Errors from suggestions index
Thesuggestions
index often triggers this error. In the extension, the suggestions index pulls data from Magento’s Search Terms collection. Search Terms is a collection of all submitted queries made by the search form. The extension indexes the query_text
value as is, which can sometimes throw errors if Search Terms contain malignant queries generated by bad actors like robots. Lax conditions allow indexing of irrelevant queries.
You can enforce higher conditions to reduce the less relevant Search Terms by increasing the numeric values in Stores > Algolia Search > Autocomplete Menu.

PHP
query_texts
values from the collection.
Record too big errors
Algolia limits individual record size for performance reasons. The limits depend on your plan. If a record is larger than the threshold, Algolia returns the error messageRecord is too big
.
To reduce the amount of errors thrown, the extension truncates or skips attributes with values that are larger than a certain size:

\Algolia\AlgoliaSearch\Helper\AlgoliaHelper::prepareRecords()
The private method handleTooBigRecord
evaluates attributes and flags large ones.
This preventive strategy isn’t always perfect as some attributes are important for search.
How to resolve
Resolve this error by upgrading your plan or reducing attribute size.Upgrade your plan
By default, the Algolia extension has a record size limit. If your Algolia plan allows a higher record size limit, you can customize the record size limit.Reduce attribute size
Attributes likedescription
, have a lot of content or hidden script tags that aren’t necessary for search.
To reduce the size of this attribute, strip the HTML tags before indexing.
To change attributes before indexing, create an observer on the dispatched event for the entity you need.
For products, this event is: algolia_after_create_product_object
PHP