Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorer
Packages that use RandomVectorScorer
Package
Description
Codecs API: API for customization of the encoding and structure of the index.
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
Methods in org.apache.lucene.codecs that return RandomVectorScorerModifier and TypeMethodDescriptionabstract 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. -
Uses of RandomVectorScorer in org.apache.lucene.codecs.lucene99
Methods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorerModifier and TypeMethodDescriptionLucene99FlatVectorsReader.getRandomVectorScorer(String field, byte[] target) Lucene99FlatVectorsReader.getRandomVectorScorer(String field, float[] target) Lucene99ScalarQuantizedVectorsReader.getRandomVectorScorer(String field, byte[] target) Lucene99ScalarQuantizedVectorsReader.getRandomVectorScorer(String field, float[] target) -
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 TypeMethodDescriptionstatic RandomVectorScorerRandomVectorScorer.createBytes(RandomAccessVectorValues<byte[]> vectors, VectorSimilarityFunction similarityFunction, byte[] query) Creates a default scorer for byte vectors.static RandomVectorScorerRandomVectorScorer.createFloats(RandomAccessVectorValues<float[]> vectors, VectorSimilarityFunction similarityFunction, float[] query) Creates a default scorer for float vectors.RandomVectorScorerSupplier.ByteScoringSupplier.scorer(int ord) RandomVectorScorerSupplier.FloatScoringSupplier.scorer(int ord) RandomVectorScorerSupplier.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 TypeMethodDescriptionstatic 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.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)