1
Change index prefix
Go to the Algolia configuration in Magento and change the index prefix to be unique for the production environment.
For example 
magento2_prod_
.
Each environment (testing, staging, production) must have a unique index prefix.
If the index prefixes are the same,
the environments overwrite each otherβs data and
searching on production might return data from the staging environment.
2
Reindex data
After changing the index prefix,
the indices with the new names need to be created.
You can achieve this by reindexing the complete catalog.After reindexing,
your search is ready to be used in production.
If you enabled the indexing queue in your new environment and want it to run automatically,
make sure to add the cron job to that environment.