Update stop-words

PUT /indexes/{indexUid}/settings/stop-words

Update the list of stop-words of an index.

If a list of stop-words already exists it will be overwritten (replaced).


If the provided index does not exist, it will be created.

Headers

  • Content-Type string Required

    Payload content-type

    Value is application/json.

Path parameters

  • indexUid string Required

    Index Unique Identifier

application/json

Body Required

array[string] array[string]

List of words ignored when present in search queries.

Responses

  • 202 application/json

    Accepted

  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
  • 404

    Not Found

PUT /indexes/{indexUid}/settings/stop-words
curl \
 -X PUT https://example.meilisearch.com:7700/indexes/movies/settings/stop-words \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '["of","the","to"]'
Request example
# Headers
Content-Type: application/json

# Payload
[
  "of",
  "the",
  "to"
]
Response examples (202)
{
  "taskUid": 0,
  "indexUid": "movies",
  "status": "enqueued",
  "type": "settingsUpdate",
  "enqueuedAt": "2021-01-01T09:39:00.000000Z"
}
Response examples (401)
{
  "message": "The Authorization header is missing. It must use the bearer authorization method.",
  "code": "missing_authorization_header",
  "type": "auth",
  "link": "https://docs.meilisearch.com/errors#missing_authorization_header"
}