Loading

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-id string required
The ID of the synonym set.
--rule-id string required
The ID of the synonym rule to be updated or created.
--synonyms string required
The synonym rule information definition, which must be in Solr format.
--input-file string
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