Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorer
-
Packages that use RandomVectorScorer Package Description org.apache.lucene.util.hnsw Navigable Small-World graph, nominally Hierarchical but currently only has a single layer. -
-
Uses of RandomVectorScorer in org.apache.lucene.util.hnsw
Methods in org.apache.lucene.util.hnsw that return RandomVectorScorer Modifier and Type Method Description static RandomVectorScorer
RandomVectorScorer. createBytes(RandomAccessVectorValues<byte[]> vectors, VectorSimilarityFunction similarityFunction, byte[] query)
Creates a default scorer for byte vectors.static RandomVectorScorer
RandomVectorScorer. createFloats(RandomAccessVectorValues<float[]> vectors, VectorSimilarityFunction similarityFunction, float[] query)
Creates a default scorer for float vectors.RandomVectorScorer
RandomVectorScorerSupplier. scorer(int ord)
This creates aRandomVectorScorer
for scoring random nodes in batches against the given ordinal.Methods in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorer Modifier and Type Method Description static KnnCollector
HnswGraphSearcher. search(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit)
SearchOnHeapHnswGraph
, this method is thread safe.static void
HnswGraphSearcher. search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds)
Searches HNSW graph for the nearest neighbors of a query vector.HnswGraphBuilder.GraphBuilderKnnCollector
HnswGraphSearcher. searchLevel(RandomVectorScorer scorer, int topK, int level, int[] eps, HnswGraph graph)
Searches for the nearest neighbors of a query vector in a given level.int[]
NeighborArray. sort(RandomVectorScorer scorer)
Sort the array according to scores, and return the sorted indexes of previous unsorted nodes (unchecked nodes)
-