# How to use my customer lucene query?

**URL:** <https://discuss.elastic.co/t/how-to-use-my-customer-lucene-query/19417>\
**Category:** Elasticsearch\
**Created:** [August 23, 2014, 3:16am UTC](https://discuss.elastic.co/t/how-to-use-my-customer-lucene-query/19417 "2014-08-23T03:16:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peiyong\_Lin](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Peiyong\_Lin](https://discuss.elastic.co/u/Peiyong_Lin)\
**Post date:** [August 23, 2014, 3:16am UTC](https://discuss.elastic.co/t/how-to-use-my-customer-lucene-query/19417/1 "2014-08-23T03:16:33Z")

</div>

I have extend a new query, and I can use it with `Query q = new ExtendedBooleanQuery(....)` in Lucene. I want to use it in elasticsearch.  
How can I integrate it to elasticsearch?  
I googled but found no guide to integrate. Or is there any plugin point  
like analyzer to add my own custom made Lucene query ?

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/b9fa6076-2b85-446c-a683-083e667649ab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9fa6076-2b85-446c-a683-083e667649ab%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![vineeth\_mohan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vineeth_mohan_2/32/747_2.png) [@vineeth\_mohan\_2](https://discuss.elastic.co/u/vineeth_mohan_2)\
**Post date:** [August 23, 2014, 9:02am UTC](https://discuss.elastic.co/t/how-to-use-my-customer-lucene-query/19417/2 "2014-08-23T09:02:33Z")

</div>

Hi ,

I also felt the need for such an feature,  
I have submitted an issue here -

> <https://github.com/elastic/elasticsearch/issues/7420>
>
> I have written my own Lucene custom query my implementing/extending the Query , …Score and Weight classes. I want to plug this as a standard query to elasticsearch so that i can refer it over query JSON.
> 
> Please provide a pluginpoint to add this new custom made query as a Elasticsearch query.

Thanks  
Vineeth

On Sat, Aug 23, 2014 at 8:46 AM, Peiyong Lin [linpyong@gmail.com](mailto:linpyong@gmail.com) wrote:

> I have extend a new query, and I can use it with `Query q = new ExtendedBooleanQuery(....)` in Lucene. I want to use it in elasticsearch.  
> How can I integrate it to elasticsearch?  
> I googled but found no guide to integrate. Or is there any plugin point  
> like analyzer to add my own custom made Lucene query ?
> 
> 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/b9fa6076-2b85-446c-a683-083e667649ab%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/b9fa6076-2b85-446c-a683-083e667649ab%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/b9fa6076-2b85-446c-a683-083e667649ab%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/b9fa6076-2b85-446c-a683-083e667649ab%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/CAGdPd5nA7tnrv2o3VAYyLC01AXxC8f6mp5%2BHEP%2B4mHRaDZApPg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGdPd5nA7tnrv2o3VAYyLC01AXxC8f6mp5%2BHEP%2B4mHRaDZApPg%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, 1:06am UTC](https://discuss.elastic.co/t/how-to-use-my-customer-lucene-query/19417/3 "2017-07-06T01:06:50Z")

</div>


