stack es synonyms put-synonym-rule cli command
Auth required
Idempotent
Scope: global
elastic stack es synonyms put-synonym-rule \
--set-id <set-id> \
--rule-id <rule-id> \
--synonyms <synonyms> \
[options]
Create or update a synonym rule.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--set-idstringrequired- The ID of the synonym set.
--rule-idstringrequired- The ID of the synonym rule to be updated or created.
--synonymsstringrequired- The synonym rule information definition, which must be in Solr format.
--input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON