Get a synonym set

  • GET /_synonyms/{id}
Auth

Required authorization

Cluster privileges manage_search_synonyms

Path parameters

id string required

The synonyms set identifier to retrieve.

Query parameters

from number · default: 0

The starting offset for synonym rules to retrieve.

size number · default: 10

The max number of synonym rules to retrieve.

search_after string

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

application/json
count number required

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

synonyms_set object[] required

Synonym rule details.

id string required

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.

synonyms string required

The synonyms that conform the synonym rule in Solr format.