Skip to navigation

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.

1

Open API keys in Algolia

In the Algolia dashboard, go to Settings, then API Keys, then All API Keys, and select New API Key.

2

Give it two rights

Under ACL, select browse and settings. Add listIndexes too if you want to pick the index from a list in Captain. Leave every other right off.

3

Limit it to the index (optional)

Under Indices, enter the index you’re importing.

4

Create the key and copy it

Copy the key, then copy your Application ID from the same page.

RightWhat Captain reads with itWithout it
browseProductsThe import stops.
settingsSearch settings, synonyms and merchandising rulesProducts still import. The summary lists what wasn’t read.
listIndexes (optional)The list behind Load my indexesType the index name instead.

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

1

Open Integrations

In the Captain console, open Product Search, then Integrations. On the Algolia card, select Import from Algolia.

2

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.

3

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.

4

Choose what to bring over

Products and search settings always come over. Synonyms and Merchandising rules are on by default, and you can turn either one off. A part you turn off is cleared from the new catalog when the import finishes.

5

Select Import

The dialog shows each step: reading from Algolia, mapping, adding products, and building the catalog. You can close it. The import runs on Captain’s servers, the Algolia card shows its progress, and you get a notification when it finishes.

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