Apply word_delimiter token filter on words having 5 chars or more.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Apply word_delimiter token filter on words having 5 chars or more.

Nassim
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Apply word_delimiter token filter on words having 5 chars or more.

Ivan Brusic

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" <[hidden email]> 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/e69d8c2b-1981-407f-b71d-9cc4fb69213d%40googlegroups.com.
For more options, visit 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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQDaO_or39PgyqATHAPZ71tRJbjLFuSwyY941uFvU%3DWyVg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.