Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorer
-
Packages that use RandomVectorScorer Package Description org.apache.lucene.codecs.bitvectors A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graphorg.apache.lucene.codecs.hnsw HNSW vector helper classes.org.apache.lucene.codecs.lucene99 Lucene 9.9 file format.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.codecs.bitvectors
Classes in org.apache.lucene.codecs.bitvectors that implement RandomVectorScorer Modifier and Type Class Description (package private) static class
FlatBitVectorsScorer.BitRandomVectorScorer
Methods in org.apache.lucene.codecs.bitvectors that return RandomVectorScorer Modifier and Type Method Description RandomVectorScorer
FlatBitVectorsScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target)
RandomVectorScorer
FlatBitVectorsScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target)
RandomVectorScorer
FlatBitVectorsScorer.BitRandomVectorScorerSupplier. scorer(int ord)
-
Uses of RandomVectorScorer in org.apache.lucene.codecs.hnsw
Classes in org.apache.lucene.codecs.hnsw that implement RandomVectorScorer Modifier and Type Class Description private static class
DefaultFlatVectorScorer.ByteVectorScorer
ARandomVectorScorer
for byte vectors.private static class
DefaultFlatVectorScorer.FloatVectorScorer
ARandomVectorScorer
for float vectors.Methods in org.apache.lucene.codecs.hnsw that return RandomVectorScorer Modifier and Type Method Description RandomVectorScorer
DefaultFlatVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target)
RandomVectorScorer
DefaultFlatVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target)
abstract RandomVectorScorer
FlatVectorsReader. getRandomVectorScorer(java.lang.String field, byte[] target)
Returns aRandomVectorScorer
for the given field and target vector.abstract RandomVectorScorer
FlatVectorsReader. getRandomVectorScorer(java.lang.String field, float[] target)
Returns aRandomVectorScorer
for the given field and target vector.RandomVectorScorer
FlatVectorsScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target)
Returns aRandomVectorScorer
for the given set of vectors and target vector.RandomVectorScorer
FlatVectorsScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target)
Returns aRandomVectorScorer
for the given set of vectors and target vector.RandomVectorScorer
ScalarQuantizedVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target)
RandomVectorScorer
ScalarQuantizedVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target)
RandomVectorScorer
DefaultFlatVectorScorer.ByteScoringSupplier. scorer(int ord)
RandomVectorScorer
DefaultFlatVectorScorer.FloatScoringSupplier. scorer(int ord)
RandomVectorScorer
ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier. scorer(int ord)
-
Uses of RandomVectorScorer in org.apache.lucene.codecs.lucene99
Classes in org.apache.lucene.codecs.lucene99 that implement RandomVectorScorer Modifier and Type Class Description private static class
Lucene99ScalarQuantizedVectorScorer.CompressedInt4DotProduct
private static class
Lucene99ScalarQuantizedVectorScorer.DotProduct
Calculates dot product on quantized vectors, applying the appropriate correctionsprivate static class
Lucene99ScalarQuantizedVectorScorer.Euclidean
private static class
Lucene99ScalarQuantizedVectorScorer.Int4DotProduct
Methods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorer Modifier and Type Method Description (package private) static RandomVectorScorer
Lucene99ScalarQuantizedVectorScorer. fromVectorSimilarity(byte[] targetBytes, float offsetCorrection, VectorSimilarityFunction sim, float constMultiplier, RandomAccessQuantizedByteVectorValues values)
RandomVectorScorer
Lucene99FlatVectorsReader. getRandomVectorScorer(java.lang.String field, byte[] target)
RandomVectorScorer
Lucene99FlatVectorsReader. getRandomVectorScorer(java.lang.String field, float[] target)
RandomVectorScorer
Lucene99ScalarQuantizedVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target)
RandomVectorScorer
Lucene99ScalarQuantizedVectorScorer. getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target)
RandomVectorScorer
Lucene99ScalarQuantizedVectorsReader. getRandomVectorScorer(java.lang.String field, byte[] target)
RandomVectorScorer
Lucene99ScalarQuantizedVectorsReader. getRandomVectorScorer(java.lang.String field, float[] target)
RandomVectorScorer
Lucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier. scorer(int ord)
RandomVectorScorer
Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier. scorer(int ord)
RandomVectorScorer
Lucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier. scorer(int ord)
-
Uses of RandomVectorScorer in org.apache.lucene.util.hnsw
Classes in org.apache.lucene.util.hnsw that implement RandomVectorScorer Modifier and Type Class Description static class
RandomVectorScorer.AbstractRandomVectorScorer
Creates a default scorer for random access vectors.Methods in org.apache.lucene.util.hnsw that return RandomVectorScorer Modifier and Type Method Description 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 private int
HnswGraphSearcher. findBestEntryPoint(RandomVectorScorer scorer, HnswGraph graph, KnnCollector collector)
Function to find the best entry point from which to search the zeroth graph layer.private int
NeighborArray. insertSortedInternal(RandomVectorScorer scorer)
insert the first unsorted node into its sorted positionstatic 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.private static void
HnswGraphSearcher. search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, HnswGraphSearcher graphSearcher, Bits acceptOrds)
(package private) void
HnswGraphSearcher. searchLevel(KnnCollector results, RandomVectorScorer scorer, int level, int[] eps, HnswGraph graph, Bits acceptOrds)
Add the closest neighbors found to a priority queue (heap).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.(package private) int[]
NeighborArray. sort(RandomVectorScorer scorer)
Sort the array according to scores, and return the sorted indexes of previous unsorted nodes (unchecked nodes)
-