Get a synonym rule Added in 8.10.0

GET /_synonyms/{set_id}/{rule_id}

Get a synonym rule from a synonym set.

Path parameters

  • set_id string Required

    The id of the synonym set to retrieve the synonym rule from

  • rule_id string Required

    The id of the synonym rule to retrieve

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
GET /_synonyms/{set_id}/{rule_id}
curl \
 -X GET http://api.example.com/_synonyms/{set_id}/{rule_id}
Response examples (200)
{
  "id": "string",
  "synonyms": "string"
}