# Word delimiter filter: match all word parts

**URL:** <https://discuss.elastic.co/t/word-delimiter-filter-match-all-word-parts/59186>\
**Category:** Elasticsearch\
**Created:** [August 29, 2016, 12:54pm UTC](https://discuss.elastic.co/t/word-delimiter-filter-match-all-word-parts/59186 "2016-08-29T12:54:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drjz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/drjz/32/972_2.png) [@drjz](https://discuss.elastic.co/u/drjz)\
**Post date:** [August 29, 2016, 12:54pm UTC](https://discuss.elastic.co/t/word-delimiter-filter-match-all-word-parts/59186/1 "2016-08-29T12:54:43Z")

</div>

I configure the Word Delimiter filter as follow:

> ```
> "type" : "word_delimiter",
> "generate_word_parts": "true",
> "split_on_numerics": "false",
> "split_on_case_change": "false",
> "preserve_original": "true"
> 
> ```

However, I notice that if I have the query "AEROSOL-GENERATING", it creates 2 tokens: AEROSOL and GENERATING. It will then retrieve documents with aerosol OR generating OR aerosol-generating. How can I change this behavior for the word parts from OR to AND? I.e. I want to run this query as ((aerosol AND generating) OR aerosol-generating).

Tips highly 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:** [July 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/word-delimiter-filter-match-all-word-parts/59186/2 "2017-07-05T22:24:26Z")

</div>


