🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
Integrations / Magento 2

When the store is launched and moved from testing / staging environment to production, 2 steps need to be done before going live:

1. Change index prefix

Navigate to Algolia configuration in Magento and change the index prefix to be unique for the production environment. For example magento2_prod_.

Modify index prefix

Each environment (testing, staging, production, …) needs to have its own unique index prefix. If the index prefixes are the same, the environments will override each other’s data and it might happen that searching on production will return data from the staging environment.

2. Reindex data

When the index prefix is changed, the indices with the new (prefixed) name need to be populated. In order to do that, reindex the complete catalog.

When the reindexing is done, the search is ready to be used in production.

If you have the indexing Queue enabled in your new environment and you require it to run automatically, please ensure that the cronjob has been added to this new environment.

Did you find this page helpful?