# Specific stopwords

**URL:** <https://discuss.elastic.co/t/specific-stopwords/38090>\
**Category:** Elasticsearch\
**Created:** [December 29, 2015, 6:20am UTC](https://discuss.elastic.co/t/specific-stopwords/38090 "2015-12-29T06:20:45Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [December 29, 2015, 6:20am UTC](https://discuss.elastic.co/t/specific-stopwords/38090/1 "2015-12-29T06:20:45Z")

</div>

Hello,

I am trying to use some stopwords such as **"Mr.", "Mrs.", "Senior", " Junior", "etc"**

I have my mapping attached below.

But somehow I get the results when I type these words as queries.

Can somebody help me in this case ?

Thanks  
Siddharth

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 29, 2015, 6:22am UTC](https://discuss.elastic.co/t/specific-stopwords/38090/2 "2015-12-29T06:22:13Z")

</div>

You may need to put your mapping into gist/pastebin/etc and link to it instead?

---

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [December 29, 2015, 6:24am UTC](https://discuss.elastic.co/t/specific-stopwords/38090/3 "2015-12-29T06:24:39Z")

</div>

`{  
"analysis": {  
"filter": {

```
      "filter_stop_custom": {
          "type": "stop",
          "stopwords": ["Mr.", "Mrs.", "Senior", "Junior"]
      }        
  },

"analyzer": {
          "commaAnalyzer_titles": {
            "type" : "custom",
              "tokenizer" : "standard"
              "filter" : ["lowercase", "filter_stop_custom"]
         } , 
}

```

}  
}`

---

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [December 29, 2015, 6:25am UTC](https://discuss.elastic.co/t/specific-stopwords/38090/4 "2015-12-29T06:25:33Z")

</div>

@warkolm  
I have just posted it!

---

<div class="post-metadata">

**Author:** ![siddharth\_gupta](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@siddharth\_gupta](https://discuss.elastic.co/u/siddharth_gupta)\
**Post date:** [December 29, 2015, 6:26am UTC](https://discuss.elastic.co/t/specific-stopwords/38090/5 "2015-12-29T06:26:22Z")

</div>

I don't know why is it not able to stop the words in the list! Do you have any idea ?

---

<div class="post-metadata">

**Author:** ![jimczi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jimczi/32/47985_2.png) [@jimczi](https://discuss.elastic.co/u/jimczi)\
**Post date:** [December 29, 2015, 5:33pm UTC](https://discuss.elastic.co/t/specific-stopwords/38090/6 "2015-12-29T17:33:15Z")

</div>

Well you have a lowercase filter just before your filter\_stop\_custom and your stop words have uppercase letters ;). Try to move your lowercase filter after the stop words filter or use lowercase for your stop words.

---

<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:** [July 5, 2017, 11:28pm UTC](https://discuss.elastic.co/t/specific-stopwords/38090/7 "2017-07-05T23:28:02Z")

</div>


