KnnByteVectorQuery
Uses KnnVectorsReader.search to perform nearest neighbour search.
This query also allows for performing a kNN search subject to a filter. In this case, it first executes the filter for each leaf, then chooses a strategy dynamically:
If the filter cost is less than k, just execute an exact search
Otherwise run a kNN search subject to the filter
If the kNN search visits too many vectors without completing, stop and run an exact search
Constructors
Properties
Functions
Expert: Constructs an appropriate Weight implementation for this query.
Override and implement query instance equivalence properly in a subclass. This is required so that QueryCache works properly.
Expert: called to re-write queries into primitive queries. For example, a PrefixQuery will be rewritten into a BooleanQuery that consists of TermQuerys.
Recurse through the query tree, visiting any child queries.