# Ignore\_case doesn't work for elastic search stop token filter

**URL:** <https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706>\
**Category:** Elasticsearch\
**Created:** [October 28, 2022, 6:23pm UTC](https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706 "2022-10-28T18:23:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![taugusti](https://avatars.discourse-cdn.com/v4/letter/t/8dc957/32.png) [@taugusti](https://discuss.elastic.co/u/taugusti)\
**Post date:** [October 28, 2022, 6:23pm UTC](https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706/1 "2022-10-28T18:23:22Z")

</div>

Trying to follow the example from the URL below to ignore case for stop words. However it doesn't seem to stop case insensitive stop words. for eg it stop "the", but not "The"

> **[Stop token filter | Elasticsearch Guide \[7.17\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.17/analysis-stop-tokenfilter.html)**

```auto
PUT /my-index-000001
{
  "settings": {
    "analysis": {
      "analyzer": {
        "default": {
          "tokenizer": "whitespace",
          "filter": ["my_custom_stop_words_filter"]
        }
      },
      "filter": {
        "my_custom_stop_words_filter": {
          "type": "stop",
          "ignore_case": true
        }
      }
    }
  }
}

```

Then I do

```auto
GET my-index-000001/_analyze
{
  "field": "ASCII_FIELD", 
  "text" :"this that a b The is IS was açaí à la carte"
}

```

However I see "The" and "IS" are tokens  
Then add a document

```auto
PUT my-index-000001/_doc/1
{

  "ASCII_FIELD" :"this that a b The is IS was açaí à la carte"
}

```

and when I search like this, I shouldn't get a result, but I'm getting

```auto
GET my-index-000001/_search
{
  "query": {
    "match": {
      "ASCII_FIELD": "The"
    }
  }
}

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 25, 2022, 6:24pm UTC](https://discuss.elastic.co/t/ignore-case-doesnt-work-for-elastic-search-stop-token-filter/317706/2 "2022-11-25T18:24:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
