# Custom analyzer from file

**URL:** <https://discuss.elastic.co/t/custom-analyzer-from-file/38851>\
**Category:** Elasticsearch\
**Created:** [January 11, 2016, 9:05am UTC](https://discuss.elastic.co/t/custom-analyzer-from-file/38851 "2016-01-11T09:05:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [January 11, 2016, 9:05am UTC](https://discuss.elastic.co/t/custom-analyzer-from-file/38851/1 "2016-01-11T09:05:13Z")

</div>

Is it possible to create a custom analyzer from a file?

example:

i have a file with no stop words that i want import in es.  
can i create this?

```auto
"filter": {
    "my_stopwords": {
        "type": "stop",
        "stopwords": my_file_with_stopwords.txt
    }
}

```

---

<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:** [January 11, 2016, 9:17am UTC](https://discuss.elastic.co/t/custom-analyzer-from-file/38851/2 "2016-01-11T09:17:01Z")

</div>

You need to add your file on each node in `config/` dir.

Read [https://www.elastic.co/guide/en/elasticsearch/reference/2.1/analysis-stop-tokenfilter.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/analysis-stop-tokenfilter.html)

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [January 11, 2016, 9:24am UTC](https://discuss.elastic.co/t/custom-analyzer-from-file/38851/3 "2016-01-11T09:24:03Z")

</div>

thanks!

---

<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:25pm UTC](https://discuss.elastic.co/t/custom-analyzer-from-file/38851/4 "2017-07-05T23:25:27Z")

</div>


