{
  "schema_version": 2,
  "id": "develop/ai/search-and-query/advanced-concepts/stopwords",
  "title": "Stop words",
  "url": "https://redis.io/docs/latest/develop/ai/search-and-query/advanced-concepts/stopwords/",
  "summary": "Stop words support",
  "aliases": [
    "/interact/search-and-query/advanced-concepts/stopwords",
    "/develop/interact/search-and-query/advanced-concepts/stopwords/"
  ],
  "tags": [
    "docs",
    "develop",
    "stack",
    "oss",
    "rs",
    "rc",
    "oss",
    "kubernetes",
    "clients"
  ],
  "last_updated": "2026-09-11T15:33:04+01:00",
  "page_type": "content",
  "content_hash": "d4350a2de5ee76e0126bf5e604e0f167c66de31526af5818f5395c7e533e24ec",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "Redis Open Source has a default list of [stop words](https://en.wikipedia.org/wiki/Stop_words). These are words that are usually so common that they do not add much information to search, but take up a lot of space and CPU time in the index. \n\nWhen indexing, stop words are discarded and not indexed. When searching, they are also ignored and treated as if they were not sent to the query processor. This is done when parsing the query. \n\nAt the moment, the default stop word list applies to all full-text indexes in all languages and can be overridden manually at index creation time."
    },
    {
      "id": "default-stop-word-list",
      "title": "Default stop word list",
      "role": "content",
      "text": "The following words are treated as stop words by default: \n\n[code example]"
    },
    {
      "id": "overriding-the-default-stop-word-list",
      "title": "Overriding the default stop word list",
      "role": "content",
      "text": "Stop words for an index can be defined (or disabled completely) on index creation using the `STOPWORDS` argument with the [[`FT.CREATE`](https://redis.io/docs/latest/commands/ft.create) command.\n\nThe format is `STOPWORDS {number} {stopword} ...` where number is the number of stop words given. The `STOPWORDS` argument must come before the `SCHEMA` argument. For example:\n\n[code example]"
    },
    {
      "id": "disable-the-use-of-stop-words",
      "title": "Disable the use of stop words",
      "role": "content",
      "text": "Disabling stop words completely can be done by passing `STOPWORDS 0` to [`FT.CREATE`](https://redis.io/docs/latest/commands/ft.create)."
    },
    {
      "id": "avoiding-stop-word-detection-in-search-queries",
      "title": "Avoiding stop word detection in search queries",
      "role": "content",
      "text": "In rare use cases, where queries are very long and are guaranteed by the client application not to contain stop words, it is possible to avoid checking for them when parsing the query. This saves some CPU time and is only worth it if the query has dozens or more terms in it. Using this without verifying that the query doesn't contain stop words might result in empty queries."
    }
  ],
  "examples": [
    {
      "id": "default-stop-word-list-ex0",
      "language": "plaintext",
      "code": "a,    is,    the,   an,   and,  are, as,  at,   be,   but,  by,   for,\n if,   in,    into,  it,   no,   not, of,  on,   or,   such, that, their,\n then, there, these, they, this, to,  was, will, with",
      "section_id": "default-stop-word-list"
    },
    {
      "id": "overriding-the-default-stop-word-list-ex0",
      "language": "plaintext",
      "code": "FT.CREATE myIndex STOPWORDS 3 foo bar baz SCHEMA title TEXT body TEXT",
      "section_id": "overriding-the-default-stop-word-list"
    }
  ]
}
