younifyd
Menu

Update all settings

Update all settings

PATCH/indexes/{index_uid}/settings

Use it in a workflow

  1. Add a step and choose the Meilisearch connector.
  2. Pick the Update all settings action (under Settings).
  3. Fill in the fields below, then reference the result from later steps as {{updateAllSettings.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.

displayedAttributesarray | null

Fields returned in search results. Affects only search endpoints, not get-document endpoints. See [displayed and searchable attributes](https://www.meilisearch.com/docs/learn/relevancy/displayed_searchable_attributes).

Default ["*"]

searchableAttributesarray | null

Fields searched for query words, in order of importance. Defines [attribute ranking order](https://www.meilisearch.com/docs/learn/relevancy/attribute_ranking_order). See [displayed and searchable attributes](https://www.meilisearch.com/docs/learn/relevancy/displayed_searchable_attributes).

Default ["*"]

filterableAttributesarray | null

Attributes that can be used as [filters](https://www.meilisearch.com/docs/learn/filtering_and_sorting/filter_search_results) and [facets](https://www.meilisearch.com/docs/learn/filtering_and_sorting/search_with_facet_filters). Strings or objects with `attributePatterns` and `features`.

Default []

sortableAttributesarray | null

Attributes that can be used to [sort search results](https://www.meilisearch.com/docs/learn/filtering_and_sorting/sort_search_results).

Default []

foreignKeysarray | null

Foreign keys to use for cross-index filtering search.

rankingRulesarray | null

[Ranking rules](https://www.meilisearch.com/docs/learn/relevancy/ranking_rules) in order of importance. Built-in rules and custom sort rules (`attribute:asc` or `attribute:desc`).

Default ["words","typo","proximity","attributeRank","sort","wordPosition","exactness"]

stopWordsarray | null

Words ignored when present in search queries.

Default []

nonSeparatorTokensarray | null

Characters that are not treated as word separators. Removed from the default separator set.

Default []

separatorTokensarray | null

Characters that delimit words. Added on top of the default separators.

Default []

dictionaryarray | null

Strings Meilisearch parses as a single term. Useful for names or domain terms.

Default []

synonymsobject | null

Pairs of words or phrases treated as equivalent for search. Key maps to an array of [synonyms](https://www.meilisearch.com/docs/learn/relevancy/synonyms).

Default {}

distinctAttributestring | null

Field whose value must be unique in the returned documents. One document per distinct value. See [distinct attribute](https://www.meilisearch.com/docs/learn/relevancy/distinct_attribute).

proximityPrecisionstring | null

Precision for the proximity ranking rule and phrase search: `byWord` (exact distance) or `byAttribute` (same attribute).

Default "byWord"

typoToleranceoneOf

Default {"enabled":true,"minWordSizeForTypos":{"oneTypo":5,"twoTypos":9},"disableOnWords":[],"disableOnAttributes":[],"disableOnNumbers":false}

facetingoneOf

Default {"maxValuesPerFacet":100,"sortFacetValuesBy":{"*":"alpha"}}

paginationoneOf

Default {"maxTotalHits":1000}

embeddersobject | null

[Embedders](https://www.meilisearch.com/docs/learn/ai_powered_search/getting_started_with_ai_search) used for semantic and [hybrid search](https://www.meilisearch.com/docs/learn/ai_powered_search/getting_started_with_ai_search). Map of embedder name to config (`source`, `model`, `documentTemplate`, etc.).

Default {}

searchCutoffMsinteger | null

Maximum duration of a search in milliseconds. If reached, the search stops and returns results computed so far. When null, 1500 ms is used.

localizedAttributesarray | null

Locales and attribute patterns for [language-specific tokenization](https://www.meilisearch.com/docs/learn/resources/language). Affects searchable, filterable, and sortable attributes.

Default []

facetSearchboolean | null

When true, [facet search](https://www.meilisearch.com/docs/learn/filtering_and_sorting/search_with_facet_filters) is enabled. When false, the facet-search endpoint is disabled.

Default true

prefixSearchoneOf

Default "indexingTime"

chatoneOf

Default {}

json
{
  "displayedAttributes": [
    "id",
    "title",
    "description",
    "url"
  ],
  "searchableAttributes": [
    "title",
    "description"
  ],
  "filterableAttributes": [
    "genres",
    "director",
    {
      "attributePatterns": [
        "*_ratings"
      ],
      "features": {
        "facetSearch": false,
        "filter": {
          "equality": true,
          "comparison": true
        }
      }
    }
  ],
  "sortableAttributes": [
    "release_date"
  ],
  "foreignKeys": [
    {
      "foreignIndexUid": "products",
      "fieldName": "productId"
    }
  ],
  "rankingRules": [
    "words",
    "typo",
    "proximity",
    "attributeRank",
    "sort",
    "wordPosition",
    "exactness"
  ],
  "stopWords": [
    "the",
    "a"
  ],
  "nonSeparatorTokens": [
    "@",
    "#"
  ],
  "separatorTokens": [
    "|"
  ],
  "dictionary": [
    "J. R. R."
  ],
  "synonyms": {
    "phone": [
      "iPhone"
    ]
  },
  "distinctAttribute": "sku"
}

Response

Returns 202 with an object. Read it in later steps with {{updateAllSettings.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.