younifyd
Menu

Update typoTolerance

Update typoTolerance

PATCH/indexes/{index_uid}/settings/typo-tolerance

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Update typoTolerance action (under Settings).
  3. Fill in the fields below, then reference the result from later steps as {{updateTypotolerance.response.data}}.

Request

Path parameters

index_uidstringrequired

Unique identifier of the index.

Request body

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

enabledboolean | null

When true, typo tolerance is enabled. When false, only exact matches are returned.

Default true

minWordSizeForTyposoneOf

Default {"oneTypo":5,"twoTypos":9}

disableOnWordsarray | null

Words for which typo tolerance is disabled. Use for brand names or terms that must match exactly.

Default []

disableOnAttributesarray | null

Attributes for which typo tolerance is disabled. Those attributes only return exact matches. Useful for fields like product codes or IDs.

Default []

disableOnNumbersboolean | null

When true, typo tolerance is disabled on numeric tokens. For example, 123 will not match 132.

Default false

json
{
  "enabled": true,
  "minWordSizeForTypos": {
    "oneTypo": 5,
    "twoTypos": 9
  },
  "disableOnWords": [
    "iPhone",
    "phone"
  ],
  "disableOnAttributes": [
    "uuid",
    "url"
  ],
  "disableOnNumbers": false
}

Response

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

taskUidinteger (u-int32)

Unique sequential identifier of the task.

indexUidstring | null

Unique identifier of the targeted index. Null for global tasks.

statusstring

The status of a task.

One ofenqueuedprocessingsucceededfailedcanceled

typestring

The type of the task.

One ofdocumentAdditionOrUpdatedocumentEditiondocumentDeletionsettingsUpdateindexCreationindexDeletionindexUpdateindexSwaptaskCancelationtaskDeletiondumpCreationsnapshotCreationexportupgradeDatabaseindexCompactionnetworkTopologyChangedsrUpdatedsrClear

enqueuedAtstring (date-time)

Date and time when the task was enqueued.

customMetadatastring | null

Custom metadata attached to this task at creation. Use it to associate tasks with external systems or add application-specific information.

json
{
  "taskUid": 0,
  "status": "processing",
  "type": "documentAdditionOrUpdate",
  "enqueuedAt": "2025-01-01T00:00:00Z",
  "indexUid": "string",
  "customMetadata": "string"
}

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