# Compound Word Token Filter Configuration File

**URL:** <https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260>\
**Category:** Elasticsearch\
**Created:** [September 14, 2015, 3:30pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260 "2015-09-14T15:30:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcos\_Cazulo](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marcos\_Cazulo](https://discuss.elastic.co/u/Marcos_Cazulo)\
**Post date:** [September 14, 2015, 3:30pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260/1 "2015-09-14T15:30:32Z")

</div>

Hi,

I am trying to switch from having a word\_list to a file with the list of words for the compound word token filter.  
Right now I have it working defining the filter in the following way:

"compound\_word\_splitter":{  
"type":"dictionary\_decompounder",  
"min\_word\_size":4,  
"min\_subword\_size":3,  
"word\_list": ["icecream","smokehouse","car"]  
}

I would like to have a separate file for the word list as the docs.

"compound\_word\_splitter":{  
"type":"dictionary\_decompounder",  
"min\_word\_size":4,  
"min\_subword\_size":3,  
"word\_list\_path": "analysis/theWords.txt"  
}

I tried having the word list file in the two following formats and the filter does not work:

"icecream","smokehouse","car"  
icecream,smokehouse,car

Does anyone have any ideas what I am missing so that the list of words is recognized?  
I have analysis/theWords.txt relative the config file.

Thank you.

---

<div class="post-metadata">

**Author:** ![Marcos\_Cazulo](https://avatars.discourse-cdn.com/v4/letter/m/779978/32.png) [@Marcos\_Cazulo](https://discuss.elastic.co/u/Marcos_Cazulo)\
**Post date:** [September 14, 2015, 5:36pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260/2 "2015-09-14T17:36:04Z")

</div>

Well after experimenting, it turns out that the word list needs to be delimited by new lines, similar to how it is specified for stop words.

It would be great if this detail was also given for the compound word token filter in the documentation.

---

<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:** [September 15, 2015, 10:03pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260/3 "2015-09-15T22:03:09Z")

</div>

Thanks for the suggestion, I've raised [https://github.com/elastic/elasticsearch/issues/13595](https://github.com/elastic/elasticsearch/issues/13595) to get that fixed.

---

<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:50pm UTC](https://discuss.elastic.co/t/compound-word-token-filter-configuration-file/29260/4 "2017-07-05T23:50:14Z")

</div>


