Skip to main content
Stop words are common terms that appear in nearly every document and add little value to search relevancy. Words like “the”, “is”, “at”, and “of” are typical examples. Configuring stop words tells Meilisearch to ignore these terms during indexing and searching, which improves both query speed and result quality.

Why configure stop words

Without stop words, a search for the lord of the rings treats every word equally. The words “the” and “of” match nearly every document, diluting the relevancy of the more meaningful terms “lord” and “rings”. By marking “the” and “of” as stop words, Meilisearch focuses on the terms that actually matter. Stop words also improve search performance. Since these common words appear in many documents, ignoring them reduces the number of comparisons Meilisearch needs to make during each query.

Check current stop words

Retrieve the current stop words for an index:
curl \
  -X GET 'MEILISEARCH_URL/indexes/movies/settings/stop-words'
By default, the response is an empty array [], meaning no stop words are configured.

Update stop words

Set a list of stop words for an index. Here is an example with common English stop words:
curl \
  -X PUT 'MEILISEARCH_URL/indexes/movies/settings/stop-words' \
  -H 'Content-Type: application/json' \
  --data-binary '[
    "the",
    "of",
    "to"
  ]'
Updating stop words triggers a re-indexing of all documents in the index. This is an asynchronous operation. Use the task API to monitor progress.

Common English stop words

Here is a more comprehensive list you can use as a starting point for English-language datasets:
[
  "a", "an", "and", "are", "as", "at", "be", "but", "by",
  "for", "if", "in", "into", "is", "it", "no", "not", "of",
  "on", "or", "such", "that", "the", "their", "then", "there",
  "these", "they", "this", "to", "was", "will", "with"
]
Adapt this list to your dataset and language. For example, French datasets might include words like “le”, “la”, “les”, “de”, “du”, “des”. If your application serves multiple languages, the recommended approach is to create a separate index per language and configure language-specific stop words for each index. This avoids situations where a stop word in one language is a meaningful term in another (for example, “die” is a stop word in German but a meaningful English word).

Important considerations

  • Stop words are index-specific. Each index has its own stop word list. If you have multiple indexes with different languages, configure appropriate stop words for each one.
  • Stop words are case-insensitive. Adding "The" is equivalent to adding "the".
  • Stop words affect indexing. Meilisearch removes stop words from the index, so changing this setting requires re-indexing.

Reset stop words

Remove all stop words and return to the default behavior:
curl \
  -X DELETE 'MEILISEARCH_URL/indexes/movies/settings/stop-words'
After resetting, Meilisearch treats all words as meaningful during indexing and searching. Stop words are also ignored inside phrase searches. If “the” is a stop word, searching for "the great gatsby" effectively matches the same documents as searching for "great gatsby", because “the” is removed from the query.
For the full API reference, see get stop words.