# Word Delimiter Filter

**URL:** <https://discuss.elastic.co/t/word-delimiter-filter/12473>\
**Category:** Elasticsearch\
**Created:** [June 19, 2013, 7:35am UTC](https://discuss.elastic.co/t/word-delimiter-filter/12473 "2013-06-19T07:35:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Peschlow](https://avatars.discourse-cdn.com/v4/letter/p/ac91a4/32.png) [@Patrick\_Peschlow](https://discuss.elastic.co/u/Patrick_Peschlow)\
**Post date:** [June 19, 2013, 7:35am UTC](https://discuss.elastic.co/t/word-delimiter-filter/12473/1 "2013-06-19T07:35:05Z")

</div>

Hi there,

my question is about Word Delimiter Filter and if it can generate tokens  
according to the requirements I have.

Suppose my original text is "one\_twoThree\_four". I want to be able to match  
on "one", "two", "three", "four", and "twothree".

It seems to me that with Word Delimiter Filter I have a choice between  
generating either the tokens "two" and "three", or "twothree" (with  
generate\_word\_parts=false), but that I cannot get both of them. I thought  
that catenate\_words=true might solve my problem but it seems to have no  
effect on tokens generated by split\_on\_case\_change=true. Here are my  
settings:

"my\_worddelimiter\_filter" : {  
"type" : "word\_delimiter",  
"catenate\_all" : false,  
"catenate\_numbers" : false,  
"catenate\_words" : true,  
"generate\_word\_parts" : true,  
"generate\_number\_parts" : true,  
"preserve\_original" : true,  
"split\_on\_case\_change" : true,  
"split\_on\_numerics" : true,  
"stem\_english\_possessive" : true  
}

Can anyone help me out how to reach the desired behavior?

-Patrick

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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 6, 2017, 2:30am UTC](https://discuss.elastic.co/t/word-delimiter-filter/12473/2 "2017-07-06T02:30:28Z")

</div>


