Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorer
Packages that use RandomVectorScorer
Package
Description
A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graph
HNSW vector helper classes.
Lucene 9.9 file format.
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 RandomVectorScorerModifier and TypeClassDescription(package private) static classMethods in org.apache.lucene.codecs.bitvectors that return RandomVectorScorerModifier and TypeMethodDescriptionFlatBitVectorsScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target) FlatBitVectorsScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target) FlatBitVectorsScorer.BitRandomVectorScorerSupplier.scorer(int ord) -
Uses of RandomVectorScorer in org.apache.lucene.codecs.hnsw
Classes in org.apache.lucene.codecs.hnsw that implement RandomVectorScorerModifier and TypeClassDescriptionprivate static classARandomVectorScorerfor byte vectors.private static classARandomVectorScorerfor float vectors.Methods in org.apache.lucene.codecs.hnsw that return RandomVectorScorerModifier and TypeMethodDescriptionDefaultFlatVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target) DefaultFlatVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target) abstract RandomVectorScorerFlatVectorsReader.getRandomVectorScorer(String field, byte[] target) Returns aRandomVectorScorerfor the given field and target vector.abstract RandomVectorScorerFlatVectorsReader.getRandomVectorScorer(String field, float[] target) Returns aRandomVectorScorerfor the given field and target vector.FlatVectorsScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target) Returns aRandomVectorScorerfor the given set of vectors and target vector.FlatVectorsScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target) Returns aRandomVectorScorerfor the given set of vectors and target vector.ScalarQuantizedVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target) ScalarQuantizedVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target) DefaultFlatVectorScorer.ByteScoringSupplier.scorer(int ord) DefaultFlatVectorScorer.FloatScoringSupplier.scorer(int ord) ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier.scorer(int ord) -
Uses of RandomVectorScorer in org.apache.lucene.codecs.lucene99
Classes in org.apache.lucene.codecs.lucene99 that implement RandomVectorScorerModifier and TypeClassDescriptionprivate static classprivate static classCalculates dot product on quantized vectors, applying the appropriate correctionsprivate static classprivate static classMethods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorerModifier and TypeMethodDescription(package private) static RandomVectorScorerLucene99ScalarQuantizedVectorScorer.fromVectorSimilarity(byte[] targetBytes, float offsetCorrection, VectorSimilarityFunction sim, float constMultiplier, RandomAccessQuantizedByteVectorValues values) Lucene99FlatVectorsReader.getRandomVectorScorer(String field, byte[] target) Lucene99FlatVectorsReader.getRandomVectorScorer(String field, float[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, byte[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorer(VectorSimilarityFunction similarityFunction, RandomAccessVectorValues vectorValues, float[] target) Lucene99ScalarQuantizedVectorsReader.getRandomVectorScorer(String field, byte[] target) Lucene99ScalarQuantizedVectorsReader.getRandomVectorScorer(String field, float[] target) Lucene99FlatVectorsWriter.FlatCloseableRandomVectorScorerSupplier.scorer(int ord) Lucene99ScalarQuantizedVectorScorer.ScalarQuantizedRandomVectorScorerSupplier.scorer(int ord) Lucene99ScalarQuantizedVectorsWriter.ScalarQuantizedCloseableRandomVectorScorerSupplier.scorer(int ord) -
Uses of RandomVectorScorer in org.apache.lucene.util.hnsw
Classes in org.apache.lucene.util.hnsw that implement RandomVectorScorerModifier and TypeClassDescriptionstatic classCreates a default scorer for random access vectors.Methods in org.apache.lucene.util.hnsw that return RandomVectorScorerModifier and TypeMethodDescriptionRandomVectorScorerSupplier.scorer(int ord) This creates aRandomVectorScorerfor scoring random nodes in batches against the given ordinal.Methods in org.apache.lucene.util.hnsw with parameters of type RandomVectorScorerModifier and TypeMethodDescriptionprivate intHnswGraphSearcher.findBestEntryPoint(RandomVectorScorer scorer, HnswGraph graph, KnnCollector collector) Function to find the best entry point from which to search the zeroth graph layer.private intNeighborArray.insertSortedInternal(RandomVectorScorer scorer) insert the first unsorted node into its sorted positionstatic KnnCollectorHnswGraphSearcher.search(RandomVectorScorer scorer, int topK, OnHeapHnswGraph graph, Bits acceptOrds, int visitedLimit) SearchOnHeapHnswGraph, this method is thread safe.static voidHnswGraphSearcher.search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds) Searches HNSW graph for the nearest neighbors of a query vector.private static voidHnswGraphSearcher.search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, HnswGraphSearcher graphSearcher, Bits acceptOrds) (package private) voidHnswGraphSearcher.searchLevel(KnnCollector results, RandomVectorScorer scorer, int level, int[] eps, HnswGraph graph, Bits acceptOrds) Add the closest neighbors found to a priority queue (heap).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)