younifyd
Menu

Delete a synonym rule

Delete a synonym rule

DELETE/_synonyms/{set_id}/{rule_id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Delete a synonym rule action (under synonyms).
  3. Fill in the fields below, then reference the result from later steps as {{deleteASynonymRule.response.data}}.

Request

Path parameters

set_idstringrequired

The ID of the synonym set to update.

rule_idstringrequired

The ID of the synonym rule to delete.

Query parameters

refreshboolean

If `true`, the request will refresh the analyzers with the deleted synonym rule and wait for the new synonyms to be available before returning. If `false`, analyzers will not be reloaded with the deleted synonym rule

Response

Returns 200 with an object. Read it in later steps with {{deleteASynonymRule.response.data.<field>}}.

resultany

The update operation result.

reload_analyzers_detailsany

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.

json
{
  "result": null,
  "reload_analyzers_details": null
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.