# Query on ES Plugin

**URL:** <https://discuss.elastic.co/t/query-on-es-plugin/6327>\
**Category:** Elasticsearch\
**Created:** [January 9, 2012, 3:07pm UTC](https://discuss.elastic.co/t/query-on-es-plugin/6327 "2012-01-09T15:07:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_Sharma](https://avatars.discourse-cdn.com/v4/letter/r/df705f/32.png) [@Rahul\_Sharma](https://discuss.elastic.co/u/Rahul_Sharma)\
**Post date:** [January 9, 2012, 3:07pm UTC](https://discuss.elastic.co/t/query-on-es-plugin/6327/1 "2012-01-09T15:07:20Z")

</div>

Hi,

I am trying to add a new Facet Search Type (withing Search Module) using ES  
Plugin Module.  
After going through the code I could figure out that I need to add  
"MYFacetProcessor.class" using FacetModule.addFacetProcessor

For that I created my own plugin from where I would like to add  
MYFacetProcessor.class to the Facet Module. But I am not able to figure out  
how to get hold of the FacetModule instance so that I can add it.

It would be great if anyone give some tips how to do it.

Thanks  
Rahul

---

<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:43am UTC](https://discuss.elastic.co/t/query-on-es-plugin/6327/2 "2017-07-06T03:43:22Z")

</div>


