Get all synonym sets Added in 8.10.0

GET /_synonyms

Get a summary of all defined synonym sets.

Query parameters

  • from number

    Starting offset

  • size number

    specifies a max number of results to get

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • count number Required
    • results array[object] Required
      Hide results attributes Show results attributes object
      • synonyms_set string Required
      • count number Required

        Number of synonym rules that the synonym set contains

GET /_synonyms
curl \
 -X GET http://api.example.com/_synonyms
Response examples (200)
{
  "count": 42.0,
  "results": [
    {
      "synonyms_set": "string",
      "count": 42.0
    }
  ]
}