# Howto add a self written token filter to ES

**URL:** <https://discuss.elastic.co/t/howto-add-a-self-written-token-filter-to-es/13747>\
**Category:** Elasticsearch\
**Created:** [September 25, 2013, 9:49am UTC](https://discuss.elastic.co/t/howto-add-a-self-written-token-filter-to-es/13747 "2013-09-25T09:49:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernd\_Fehling](https://avatars.discourse-cdn.com/v4/letter/b/c2a13f/32.png) [@Bernd\_Fehling](https://discuss.elastic.co/u/Bernd_Fehling)\
**Post date:** [September 25, 2013, 9:49am UTC](https://discuss.elastic.co/t/howto-add-a-self-written-token-filter-to-es/13747/1 "2013-09-25T09:49:12Z")

</div>

I have a custom self written token filter for SOLR and want to port it to  
ES.  
Howto add a self written SOLR token filter to ES?

Just drop the jar into lib directory?

Is there a skeleton for developing own token filter for ES?

Regards,  
Bernd

--  
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:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [September 25, 2013, 12:14pm UTC](https://discuss.elastic.co/t/howto-add-a-self-written-token-filter-to-es/13747/2 "2013-09-25T12:14:25Z")

</div>

I think the best way to find this this out is to look at an existing  
analysis plugin like:

> **[GitHub - elastic/elasticsearch-analysis-phonetic: Phonetic Analysis Plugin...](https://github.com/elastic/elasticsearch-analysis-phonetic)**
>
> Phonetic Analysis Plugin for Elasticsearch. Contribute to elastic/elasticsearch-analysis-phonetic development by creating an account on GitHub.

You basically need to write a factory class  
(extend AbstractTokenFilterFactory) that creates your token filter and wire  
it up in guice.

On 25 September 2013 11:49, Bernd Fehling [bernd.fehling@googlemail.com](mailto:bernd.fehling@googlemail.com)wrote:

> I have a custom self written token filter for SOLR and want to port it to  
> ES.  
> Howto add a self written SOLR token filter to ES?
> 
> Just drop the jar into lib directory?
> 
> Is there a skeleton for developing own token filter for ES?
> 
> Regards,  
> Bernd
> 
> --  
> 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).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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:14am UTC](https://discuss.elastic.co/t/howto-add-a-self-written-token-filter-to-es/13747/3 "2017-07-06T02:14:44Z")

</div>


