younifyd
Menu

Create or update a synonym set item

Create or update a synonym set item

PUT/synonym_sets/{synonymSetName}/items/{itemId}

Use it in a workflow

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

Request

Path parameters

synonymSetNamestringrequired

The name of the synonym set

itemIdstringrequired

The id of the synonym item to upsert

Request body

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

synonymsarray<string>required

Array of words that should be considered as synonyms

rootstring

For 1-way synonyms, indicates the root word that words in the synonyms parameter map to

localestring

Locale for the synonym, leave blank to use the standard tokenizer

symbols_to_indexarray<string>

By default, special characters are dropped from synonyms. Use this attribute to specify which special characters should be indexed as is

json
{
  "synonyms": [
    "string"
  ],
  "root": "string",
  "locale": "string",
  "symbols_to_index": [
    "string"
  ]
}

Response

Returns 200 with a any. Read it in later steps with {{createOrUpdateASynonymSetItem.response.data.<field>}}.

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