Get synonym ruleedit
This 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 synonym rule from a synonyms set.
Requestedit
GET _synonyms/<synonyms_set>/<synonym_rule>
Prerequisitesedit
Requires the manage_search_synonyms
cluster privilege.
Path parametersedit
-
<synonyms_set>
- (Required, string) Synonyms set identifier to retrieve the synonym rule from.
-
<synonym_rule>
- (Required, string) Synonym rule identifier to retrieve.
Response codesedit
-
404
(Missing resources) -
The
synonyms_set
identifier was not found, or the synonym rule specified bysynonym_rule
was not found in the synonyms set.
Examplesedit
The following example retrieves an existing synonym rule called test-1
for the synonyms set my-synonyms-set
:
GET _synonyms/my-synonyms-set/test-1
{ "id": "test-1", "synonyms": "hello, hi" }