# Filter settings preserve\_original and shingle

**URL:** <https://discuss.elastic.co/t/filter-settings-preserve-original-and-shingle/241069>\
**Category:** Elasticsearch\
**Created:** [July 14, 2020, 7:14am UTC](https://discuss.elastic.co/t/filter-settings-preserve-original-and-shingle/241069 "2020-07-14T07:14:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xlisfo](https://avatars.discourse-cdn.com/v4/letter/x/a8b319/32.png) [@xlisfo](https://discuss.elastic.co/u/xlisfo)\
**Post date:** [July 14, 2020, 7:14am UTC](https://discuss.elastic.co/t/filter-settings-preserve-original-and-shingle/241069/1 "2020-07-14T07:14:15Z")

</div>

I have a question on how to use preserve\_original : true and shingle token filters together. Say, I have a query "camelCase apple", the word\_delimiter will split on case change to "camel case" first while keeping the original form "camelCase". Therefore the tokens generated would be like "camelCase camel", "camelCase camel", "camelCase camel case"... Those three obviously are not what I intended. Any pointers on how to reduce the dup in the final tokens?

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:** [August 11, 2020, 7:14am UTC](https://discuss.elastic.co/t/filter-settings-preserve-original-and-shingle/241069/2 "2020-08-11T07:14:18Z")

</div>

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