# Elasticsearch: Analyzer not working

**URL:** <https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485>\
**Category:** Elasticsearch\
**Created:** [October 15, 2018, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485 "2018-10-15T11:52:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [October 15, 2018, 11:52am UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485/1 "2018-10-15T11:52:25Z")

</div>

Hi Team

I'm not sure why this is not working

```
PUT my_index
  {
 "settings": {
   "analysis": {
     "analyzer": {
       "test_analyzer": {
         "type": "standard",
         "stopwords": "_english_"
       }
     }
   }
 }
}

   POST my_index/_analyze
{
  "text": "The 2 QUICK Brown-Foxes jumped over the lazy dog's bone."
}

```

O/p:

```
{
  "tokens": [
    {
      "token": "the",
      "start_offset": 0,
      "end_offset": 3,
      "type": "<ALPHANUM>",
      "position": 0
    },
    {
      "token": "2",
      "start_offset": 4,
      "end_offset": 5,
      "type": "<NUM>",
      "position": 1
    },
    {
      "token": "quick",
      "start_offset": 6,
      "end_offset": 11,
      "type": "<ALPHANUM>",
      "position": 2
    },
    {
      "token": "brown",
      "start_offset": 12,
      "end_offset": 17,
      "type": "<ALPHANUM>",
      "position": 3
    },
    {
      "token": "foxes",
      "start_offset": 18,
      "end_offset": 23,
      "type": "<ALPHANUM>",
      "position": 4
    },
    {
      "token": "jumped",
      "start_offset": 24,
      "end_offset": 30,
      "type": "<ALPHANUM>",
      "position": 5
    },
    {
      "token": "over",
      "start_offset": 31,
      "end_offset": 35,
      "type": "<ALPHANUM>",
      "position": 6
    },
    {
      "token": "the",
      "start_offset": 36,
      "end_offset": 39,
      "type": "<ALPHANUM>",
      "position": 7
    },
    {
      "token": "lazy",
      "start_offset": 40,
      "end_offset": 44,
      "type": "<ALPHANUM>",
      "position": 8
    },
    {
      "token": "dog's",
      "start_offset": 45,
      "end_offset": 50,
      "type": "<ALPHANUM>",
      "position": 9
    },
    {
      "token": "bone",
      "start_offset": 51,
      "end_offset": 55,
      "type": "<ALPHANUM>",
      "position": 10
    }
  ]
}

```

It's not removing the stop words\> Did I miss something?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 15, 2018, 1:56pm UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485/2 "2018-10-15T13:56:04Z")

</div>

You are not specifying which analyzer to use when you are calling the `_analyze` endpoint.

---

<div class="post-metadata">

**Author:** ![rahulnama](https://avatars.discourse-cdn.com/v4/letter/r/8c91f0/32.png) [@rahulnama](https://discuss.elastic.co/u/rahulnama)\
**Post date:** [October 15, 2018, 3:35pm UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485/3 "2018-10-15T15:35:15Z")

</div>

Oh yes. I will do that

Thanks @dadoonet

---

<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 12, 2018, 3:35pm UTC](https://discuss.elastic.co/t/elasticsearch-analyzer-not-working/152485/4 "2018-11-12T15:35:15Z")

</div>

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