Index-selection plugin - Parsing a search-query


I'm working on a plugin called Index-Selec
The plugin estimates which indices are most likely to contain relevant
documents to a query-string.

The idea is that when the relevance of the indices has been estimated a
search-query should be performed on the most relevant indices. The
should be included in the request-body of the index-select request.

The problem I'm having is parsing the search-query. Unfortunately the
methods used to parse a search-query are hidden in the search rest-handler.
very bad solution would be to copy this code to my own rest-handler, and
update it for every new version of ElasticSearch.

Is there perhaps a way to forward a request to another rest-handler inside
of ElasticSearch? I should mention that the index-selection operation is
handled on the transport-level.


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
For more options, visit