# Elasticsearch and plugins

**URL:** <https://discuss.elastic.co/t/elasticsearch-and-plugins/9934>\
**Category:** Elasticsearch\
**Created:** [December 4, 2012, 3:45pm UTC](https://discuss.elastic.co/t/elasticsearch-and-plugins/9934 "2012-12-04T15:45:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyal\_Ben\_Meir](https://avatars.discourse-cdn.com/v4/letter/e/8491ac/32.png) [@Eyal\_Ben\_Meir](https://discuss.elastic.co/u/Eyal_Ben_Meir)\
**Post date:** [December 4, 2012, 3:45pm UTC](https://discuss.elastic.co/t/elasticsearch-and-plugins/9934/1 "2012-12-04T15:45:11Z")

</div>

Can one write his own tokenizer of filter class and use it inside  
elasticsearch? Is there any API to use a user defined objects using java  
classes? (like Lucene analyzer...)

--

---

<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:** [December 4, 2012, 5:32pm UTC](https://discuss.elastic.co/t/elasticsearch-and-plugins/9934/2 "2012-12-04T17:32:18Z")

</div>

In your plugin, you can add your custom tokenizer to the AnalysisModule.

The AnalysisModule has an addProcessor method which takes  
an AnalysisBinderProcessor. Add your tokenizer to a new instance via  
the processTokenizers method. Hopefully this all makes sense!

Cheers,

Ivan

On Tue, Dec 4, 2012 at 7:45 AM, Eyal Ben-Meir [eyalbm@gmail.com](mailto:eyalbm@gmail.com) wrote:

> Can one write his own tokenizer of filter class and use it inside  
> elasticsearch? Is there any API to use a user defined objects using java  
> classes? (like Lucene analyzer...)
> 
> --

--

---

<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, 3:01am UTC](https://discuss.elastic.co/t/elasticsearch-and-plugins/9934/3 "2017-07-06T03:01:32Z")

</div>


