younifyd
Menu

Get a synonym rule

Get a synonym rule

GET/_synonyms/{set_id}/{rule_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Get a synonym rule action (under synonyms).
  3. Fill in the fields below, then reference the result from later steps as {{getASynonymRule.response.data}}.

Request

Path parameters

set_idstringrequired

The ID of the synonym set to retrieve the synonym rule from.

rule_idstringrequired

The ID of the synonym rule to retrieve.

Response

Returns 200 with an object. Read it in later steps with {{getASynonymRule.response.data.<field>}}.

idany

The identifier for the synonym rule. If you do not specify a synonym rule ID when you create a rule, an identifier is created automatically by Elasticsearch.

synonymsany

The synonyms that conform the synonym rule in Solr format.

json
{
  "id": null,
  "synonyms": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.