younifyd
Menu

Get a synonym set

Get a synonym set

GET/_synonyms/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

The synonyms set identifier to retrieve.

Query parameters

fromnumber

The starting offset for synonym rules to retrieve.

sizenumber

The max number of synonym rules to retrieve.

search_afterstring

The synonym rule ID to use as a cursor for pagination. The next page of results will start after this rule ID. This parameter cannot be used with `from`.

Response

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

countnumber

The total number of synonyms rules that the synonyms set contains.

synonyms_setarray<object>

Synonym rule details.

idanyrequired

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.

synonymsanyrequired

The synonyms that conform the synonym rule in Solr format.

json
{
  "count": 0,
  "synonyms_set": [
    {
      "id": null,
      "synonyms": null
    }
  ]
}

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

Get a synonym set — Elasticsearch — Documentation