algolia synonyms import <index> -F <file> [flags]
Examples
Import synonyms from the “synonyms.ndjson” file to the “MOVIES” index:
algolia synonyms import MOVIES -F synonyms.ndjson
Import synonyms from the standard input to the “MOVIES” index:
cat synonyms.ndjson | algolia synonyms import MOVIES -F -
Browse the synonyms in the “SERIES” index and import them to the “MOVIES” index:
algolia synonyms browse SERIES | algolia synonyms import MOVIES -F -
Import synonyms from the “synonyms.ndjson” file to the “MOVIES” index and replace existing synonyms:
algolia synonyms import MOVIES -F synonyms.ndjson -r
Import synonyms from the “synonyms.ndjson” file to the “MOVIES” index and don’t forward the synonyms to the index replicas:
algolia synonyms import MOVIES -F synonyms.ndjson -f=false
Flags
Import synonyms from a file
(use ”-” to read from standard input)
-f, --forward-to-replicas
Whether to also add the synonyms to replicas
-r, --replace-existing-synonyms
Replace existing synonyms in the index
wait for the operation to complete