lucene
lucene copied to clipboard
Multi-value Support for KnnVectorField
Description
It would be nice to support multiple values in a Knn vector field. This must be compatible with both the Exact and Approximate Nearest Neighbor search.
There are two sides to the coin:
- Index time support - allowing to add in the indexing data structures multiple vectors for the same field and docID
- Query time support - how to retrieve a topK list of documents, where each document my have multiple neighbors to the query
The problem is more complicated than it seems.
An initial tentative design and draft implementation is attached