Investigate migrating from native ANN search at weight.scorer create level to query.rewrite leve #1845
Labels
Enhancements
Increases software capabilities beyond original client specifications
Description
Currently, the ANN search is executed at KNNWeight.scorer() stage. Scorers are created at the per segment level. The scorer returned more or less just iterates over the matches that are returned.
In Lucene, they do the Ann search the query rewrite phase. This will build scorers for each segment, but limit the number of hits for the shard to k.
I want to investigate feasibility of migrating to ANN search execution at rewrite state in the plugin. Off the top of my head, it has the following benefits:
That being said, I still need to figure out what the downsides may be. At the moment, I cannot think of any, but will update here if I find any.
In order to do this migration, I think we would need to
The text was updated successfully, but these errors were encountered: