IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
List synonyms sets
editList synonyms sets
editThis functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.
Retrieves a summary of all defined synonyms sets.
This API allows to retrieve the total number of synonyms sets defined. For each synonyms set, its identifier and the total number of defined synonym rules is returned.
Request
editGET _synonyms
Prerequisites
editRequires the manage_search_synonyms
cluster privilege.
Query parameters
edit-
from
-
(Optional, integer) Starting offset for synonyms sets to retrieve. Defaults to
0
. -
size
-
(Optional, integer) Specifies the maximum number of synonyms sets to retrieve. Defaults to
10
.
Examples
editThe following example retrieves all defined synonyms sets:
GET _synonyms
A sample response:
{ "count": 3, "results": [ { "synonyms_set": "ecommerce-synonyms", "count": 2 }, { "synonyms_set": "my-synonyms-set", "count": 3 }, { "synonyms_set": "new-ecommerce-synonyms", "count": 1 } ] }