Delete a synonym rule
- DELETE /_synonyms/{set_id}/{rule_id}
Delete a synonym rule from a synonym set.
- Cluster privileges:
manage_search_synonyms
Query Parameters
-
refreshboolean · default: true If
true, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning. Iffalse, analyzers will not be reloaded with the deleted synonym rule
Response
-
reload_analyzers_detailsReloadResult -
Updating synonyms in a synonym set can reload the associated analyzers in case refresh is set to true. This information is the analyzers reloading result.
-
reload_detailsReloadDetailsrequired -
indexstringrequired -
reloaded_analyzersstringrequired -
reloaded_node_idsstringrequired -
_shardsShardStatisticsrequired -
failednumber uintrequired -
The number of shards the operation or search attempted to run on but failed.
-
successfulnumber uintrequired -
The number of shards the operation or search succeeded on.
-
totalnumber uintrequired -
The number of shards the operation or search will run on overall.
-
failuresShardFailure -
indexstring IndexName -
nodestring -
reasonErrorCauserequired -
typestringrequired -
The type of error
-
reasonstringnullable -
A human-readable explanation of the error, in English.
-
stack_tracestring -
The server stack trace. Present only if the
error_trace=trueparameter was sent with the request. -
caused_byErrorCause -
root_causeErrorCause -
suppressedErrorCause -
shardnumber -
statusstring -
primaryboolean -
skippednumber uint