# Custom query parser

**URL:** https://discuss.elastic.co/t/custom-query-parser/19337
**Category:** Elasticsearch
**Created:** [August 19, 2014, 8:22am UTC](https://discuss.elastic.co/t/custom-query-parser/19337 "2014-08-19T08:22:20Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Pawel\_2](https://avatars.discourse-cdn.com/v4/letter/p/5f8ce5/32.png) [@Pawel\_2](https://discuss.elastic.co/u/Pawel_2)
#### Post date: [August 19, 2014, 8:22am UTC](https://discuss.elastic.co/t/custom-query-parser/19337/1 "2014-08-19T08:22:20Z")

</div>

Hi,  
I'd like to prepare new query parser which will be triggered for each query  
sent to ES.  
I already implemented a query parser and attached it to AnalysisService but  
I have to run it by

{  
"query" : {  
"custom\_query : {  
....  
}  
}  
}

I'd like to avoid this. ES has multiple clients for multiple languages but  
not all of them support such a custom query type.  
Is it possible to trigger my custom\_query parser for each query sent to ES?

I see that I can build my own RESTAction but it means the endpoint will  
change (\_search =\> \_custom\_endpoint) so again it can be not supported by ES  
clients.

Do you have any suggestions how to handle this?

--  
Paweł Róg

--  
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/CAF9ZkbMGnEtJoQ%3Dj-vnGn%3DtjZi5F%2B1Pim1DgARiQ6AzU5H%2Bs3Q%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAF9ZkbMGnEtJoQ%3Dj-vnGn%3DtjZi5F%2B1Pim1DgARiQ6AzU5H%2Bs3Q%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:07am UTC](https://discuss.elastic.co/t/custom-query-parser/19337/2 "2017-07-06T01:07:45Z")

</div>


