Custom Query Parser possible?


(Otis Gospodnetić) #1

Hello,

I see in this message from December 2010 there is/was no support for
custom Query Parsers:
http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/730dae611b91b0ae/aab4e35f9b8063f2?lnk=gst&q=custom+query+parser#aab4e35f9b8063f2

Is that still the case? I can't find any mention of custom query
parsers in the docs, so I'm assuming one is still limited to using the
Lucene QP?

Thanks,
Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


(Shay Banon) #2

You can implement your own custom query in elasticsearch (for example: my_special_query_string type). It should know how to parse itself and generate a Lucene Query out of it. Check the QueryStringQueryParser. You will then need to register it under your name (my_speial_query_parser) using a plugin.
On Friday, May 13, 2011 at 9:52 PM, Otis wrote:

Hello,

I see in this message from December 2010 there is/was no support for
custom Query Parsers:
http://groups.google.com/a/elasticsearch.com/group/users/browse_thread/thread/730dae611b91b0ae/aab4e35f9b8063f2?lnk=gst&q=custom+query+parser#aab4e35f9b8063f2

Is that still the case? I can't find any mention of custom query
parsers in the docs, so I'm assuming one is still limited to using the
Lucene QP?

Thanks,
Otis

Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
Lucene ecosystem search :: http://search-lucene.com/


(system) #3