- Go to the Algolia dashboard and select your Algolia application.
- On the left sidebar, select Search.
- Select your Algolia index.
- On the Configuration tab, click Synonyms.
Add synonyms
To add a new synonym, click Add Synonyms and choose the type:- Regular synonyms
- One-way synonyms
- Alternative corrections
- Placeholders
Synonyms (regular synonyms)

One-way synonyms

Placeholders

<street>
for street
and st
, in the example).
Alternative corrections

Copy synonyms to other indices
To copy a synonym you created to other indices, select the Copy this expansion to other indices option and choose your indices.Import synonyms from a file
To import synonyms from a file, click the arrow next to Add Synonyms and then click Upload.
Import synonyms from JSON icon=“braces”
The file must contain an array of newline-delimited JSON objects. Each object must include:- A unique object ID value that identifies the synonym record. Object ID aren’t automatically generated if they’re missing.
-
A type value, which must be one of these options:
synonym
oneWaySynonym
altCorrection1
altCorrection2
placeholder
- Other fields required by the selected type.
Import synonyms from CSV
You can only use CSV files to import regular synonyms (synonym
).
The file must contain one set of comma-separated synonyms per line.
Algolia accepts CSV files which must use commas as field separators.
Export synonyms to a file
To back up or take a snapshot of your synonyms, click the arrow next to Add Synonyms and click Export as JSON or Export as CSV. CSV export is limited to regular synonyms.Delete one synonym
To delete a specific synonym, click Delete synonym.
Delete all synonyms
To remove all synonyms from an index, open the More Options menu and select Delete All.You can’t undo this operation.
Edit synonyms
Click Edit synonym.