# How to make stopwords path text file work with words that have single quotes

**URL:** <https://discuss.elastic.co/t/how-to-make-stopwords-path-text-file-work-with-words-that-have-single-quotes/278427>\
**Category:** Elasticsearch\
**Created:** [July 12, 2021, 12:34pm UTC](https://discuss.elastic.co/t/how-to-make-stopwords-path-text-file-work-with-words-that-have-single-quotes/278427 "2021-07-12T12:34:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zubair\_Ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zubair_ali/32/91505_2.png) [@Zubair\_Ali](https://discuss.elastic.co/u/Zubair_Ali)\
**Post date:** [July 12, 2021, 12:34pm UTC](https://discuss.elastic.co/t/how-to-make-stopwords-path-text-file-work-with-words-that-have-single-quotes/278427/1 "2021-07-12T12:34:12Z")

</div>

I have the following stopwords filter:

```auto

 "english_stop": {
          "type": "stop",
          "stopwords_path": "/usr/local/etc/elasticsearch/stopwords.txt",
          "updateable": true
}

```

These are the words in my stopwords.txt file:

forbe  
and  
fox  
rail  
these  
it's

All the words return 0 results as expected except for "it's" which has a single quote/apostrophe in it.

I've tried escaping the single quote using html code and/or unicode but no luck.

Any help would be appreciated.

---

<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:** [August 9, 2021, 12:34pm UTC](https://discuss.elastic.co/t/how-to-make-stopwords-path-text-file-work-with-words-that-have-single-quotes/278427/2 "2021-08-09T12:34:38Z")

</div>

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