My team is looking to piggy-back a custom full text search capability into
Elasticsearch 2.1 such that a user can run one query that utilizes the
boolean, keyword and metadata queries of Elasticsearch and also include
this new custom search capability at the very same time.
Each document to be searched in this fashion would have the typical text,
metadata and the analyzed inverted index, and also include a non-analyzed
blob of precomputed data about this text that this new search needs to do
Ideally a query that included boolean, keyword, metadata and custom components
could work at the document level by delegating the Elasticsearch query
part to current code, and then only if the document satisfies this
criteria would we use the custom data on the document to compute the
custom search score.
My question is, first, is this possible to do in a way that enables all
of the scaling capabilities of Elasticsearch?
And, second, what are the integration points that a plugin would need
to override to make this happen?
Obviously we would need a custom REST entry point to support an
expanded query format for both query-fetch and scan-scroll that
included our new search
But, while there are plenty of example plugins for analyzers, we haven't
found much at all to help us figure out how to create a plugin like this.
Any detailed guidance you can provide to help would be greatly appreciated!