# Apply word\_delimiter token filter on words having 5 chars or more

**URL:** <https://discuss.elastic.co/t/apply-word-delimiter-token-filter-on-words-having-5-chars-or-more/23388>\
**Category:** Elasticsearch\
**Created:** [April 24, 2015, 8:39am UTC](https://discuss.elastic.co/t/apply-word-delimiter-token-filter-on-words-having-5-chars-or-more/23388 "2015-04-24T08:39:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nassim](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nassim/32/739_2.png) [@Nassim](https://discuss.elastic.co/u/Nassim)\
**Post date:** [April 24, 2015, 8:39am UTC](https://discuss.elastic.co/t/apply-word-delimiter-token-filter-on-words-having-5-chars-or-more/23388/1 "2015-04-24T08:39:39Z")

</div>

Hi,

Is it possibile to apply the word\_delimiter token filter only on words  
having 5 chars or more ?

Thank you.

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [April 24, 2015, 12:47pm UTC](https://discuss.elastic.co/t/apply-word-delimiter-token-filter-on-words-having-5-chars-or-more/23388/2 "2015-04-24T12:47:40Z")

</div>

Your best option would be to write your own filter. It should be easy since  
you have access to the source of the delimiter and length filters. Look at  
the existing filter plugins for examples on how to deploy.

Ivan  
On Apr 24, 2015 10:39 AM, "Nassim" [nassim.kacha@gmail.com](mailto:nassim.kacha@gmail.com) wrote:

> Hi,
> 
> Is it possibile to apply the word\_delimiter token filter only on words  
> having 5 chars or more ?
> 
> Thank you.
> 
> --  
> 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).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDaO\_or39PgyqATHAPZ71tRJbjLFuSwyY941uFvU%3DWyVg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDaO_or39PgyqATHAPZ71tRJbjLFuSwyY941uFvU%3DWyVg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:17am UTC](https://discuss.elastic.co/t/apply-word-delimiter-token-filter-on-words-having-5-chars-or-more/23388/3 "2017-07-06T00:17:51Z")

</div>

Closed on July 6, 2017, 12:17am UTC


