Integrations / Platforms / Magento 2 / Moving to Production
May. 10, 2019

Moving to Production

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.

Did you find this page helpful?