Hi,
In a different thread Shay wrote:
Elasticsearch execution is a bit different. Because all is segment based and collector based,
there are not different "stages" of search, all is done while the query executes.
So is there no way for one to "hook into" the search request
execution?
For example, right now we are working on a project with Solr and
building a SearchComponent that takes the query, analyzes it in a
certain way, takes some data out of it, executes some Java code to
transform the extracted data into something else and essentially
rewrites the query a bit. Implementation details are irrelevant - the
key is that I can write some custom Java code that extends Solr's
SearchComponent, declare this new component of mine in solrconfig.xml
and include it in the request flow. In this case, I'd put it before
the component that does the actually querying, but we've also built
components that came after the query component in this component
chain.
This was discussed in
http://groups.google.com/group/elasticsearch/browse_thread/thread/d0dbd5ea795fa8a4/5dfa56829a94ff60
...but there was no clear answer... and I'd love to know if Shay has
any plans around this for ES. I, obviously, find hitting this
repeatedly and I'm probably not alone.
Thanks,
Otis
Sematext is hiring world-wide-- Jobs - Sematext