Import from Algolia
Copy one Algolia index into a new Captain catalog. You don’t need to write code or export files.
You’ll need: an Algolia application you can create API keys in, and a Captain account that can make changes in Product Search.
Make a read-only key
Captain reads your index with an Algolia key that can’t change anything. It refuses a key that can write.
Open API keys in Algolia
In the Algolia dashboard, go to Settings, then API Keys, then All API Keys, and select New API Key.
Captain refuses a key that has addObject, deleteObject, deleteIndex or editSettings, before it reads anything. It refuses your Admin API Key too.
Your browser sends the key straight to Algolia to list your indexes and check the key’s rights. Captain’s servers use it once, to read this index from Algolia’s own hosts, and hold it in memory only for the length of the import. Captain never writes the key to storage, logs, the import job or any response, and the console doesn’t save it. To use the key again, paste it again.
Run the import
Open Integrations
In the Captain console, open Product Search, then Integrations. On the Algolia card, select Import from Algolia.
Enter your Algolia details
Paste the Application ID and the API key. Type the index name, or select Load my indexes to pick it from a list. The list needs the listIndexes right.
Name the new catalog
The import always creates a new catalog. Catalog names use lowercase letters a to z, digits 0 to 9, _ and -, start with a letter or digit, and are up to 48 characters long. The dialog suggests a name from the Algolia index and refuses one that’s already taken.
When it finishes, the dialog sums it up, for example “Imported 12,480 products, 34 synonyms, 9 merchandising rules and your search settings”. It also lists anything that didn’t come over.
Next
- What gets imported: how each Algolia setting, synonym type and rule maps.
- Troubleshooting: timing for large catalogs, errors, and what happens when an import fails.
- To import with the API instead, see Import from Algolia in Records.
- To keep an Algolia client or InstantSearch front end working against Captain, see Algolia Compatibility.