Option 1 (simpler): Manually create new Applications for each store, then have Shopify build data in each new Application with the old (current) index displayed on the front-end.
-
Go into the theme editor on the live theme and open
assets/algolia_config.js
, copy the contents of this file and paste to a text editor to keep for later. -
Setup the new Application in Algolia, and update the settings (App ID, Search API Key, and Index Prefix) in the Shopify plugin. Click save to begin the indexing process.
-
Go back to the theme editor on the live theme and open
assets/algolia_config.js
, copy the contents of this file and paste in a text editor below the one saved in the first step. -
Now replace the contents of
algolia_config.js
with the first set of data saved in the text editor. Savealgolia_config.js
-
This should keep the store on the original/existing index while the new one is being generated in the background.
-
-
Once the indexing process is finished, go back to
algolia_config.js
and update the contents of the file with the second set of data pasted into the text editor and save.-
Now the store should be using the new Application and index.
-
Option 2 (advanced): Manually create new Applications for each store, then copy indices and settings to each.
-
This would require a custom script to copy the index from one App to the other. Reference: Copy Index API Reference | Algolia
-
Settings, rules, synonyms, etc. can be exported and imported via the Algolia Dashboard.
-
-
Once the Application and indices are setup, you will need to update the settings (App ID, Search API Key, and Index Prefix) in the Shopify plugin under Settings.