younifyd
Menu

Create or update a synonym set

Create or update a synonym set

PUT/_synonyms/{id}

Use it in a workflow

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

Request

Path parameters

idstringrequired

The ID of the synonyms set to be created or updated.

Query parameters

refreshboolean

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

appendboolean

If `true`, the provided synonym rules are appended to the existing set, with matching IDs overwriting existing rules. If `false`, the entire synonyms set is replaced with the new synonym rules definitions.

Request body

Enter the body as JSON in the step's Body field.

synonyms_setoneOfrequired

The synonym rules definitions for the synonyms set.

json
{
  "synonyms_set": null
}

Response

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

resultany

The update operation result.

reload_analyzers_detailsany

Updating a synonyms 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.

Create or update a synonym set — Elasticsearch — Documentation