How to register Custom Query Parser Plugin in ES 6.2.4

Hello,

I am using ElasticSearch 6.2.4.

I am trying to create the Custom Query Parser Plugin.

I saw the mesage under https://discuss.elastic.co/t/custom-query-parser-possible from May, 2011.

I have created my custom query parser as per the implementation of QueryStringQueryParser.

I need the help to register my custom plugin with the help of Plugin class.

As I can seet there is no method (registerQueryParser) availble now in indexModule.

public void onIndexModule(IndexModule indexModule) {
     indexModule.registerQueryParser(...) /* method not available */
}

Is there any other way to register my custom query parser?

Thanks in advance

You need your plugin to implement SearchPlugin and override the getQueries() method to return your query implementations.

1 Like

Thanks a lot for your kind response. :grinning:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.