Uses of Interface org.apache.lucene.util.hnsw.RandomVectorScorer (Lucene 10.5.0 core API)
Description: use: package: org.apache.lucene.util.hnsw, interface: RandomVectorScorer

# Uses of Interface
org.apache.lucene.util.hnsw.RandomVectorScorer

Packages that use RandomVectorScorer
Package
Description
org.apache.lucene.codecs.hnsw
HNSW vector helper classes.
org.apache.lucene.codecs.lucene104
Lucene 10.4 file format.
org.apache.lucene.codecs.lucene99
Lucene 9.9 file format.
org.apache.lucene.search
Code to search indices.
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.hnsw

  Methods in org.apache.lucene.codecs.hnsw that return RandomVectorScorer
  Modifier and Type
  Method
  Description
  `RandomVectorScorer`
  DefaultFlatVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  `RandomVectorScorer`
  DefaultFlatVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`
  `abstract RandomVectorScorer`
  FlatVectorsReader.`getRandomVectorScorer(String field, byte[] target)`
  Returns a `RandomVectorScorer` for the given field and target vector.
  `abstract RandomVectorScorer`
  FlatVectorsReader.`getRandomVectorScorer(String field, float[] target)`
  Returns a `RandomVectorScorer` for the given field and target vector.
  `RandomVectorScorer`
  FlatVectorsScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  Returns a `RandomVectorScorer` for the given set of vectors and target vector.
  `RandomVectorScorer`
  FlatVectorsScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`
  Returns a `RandomVectorScorer` for the given set of vectors and target vector.
  `RandomVectorScorer`
  PrefetchableFlatVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  `RandomVectorScorer`
  PrefetchableFlatVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`
  `RandomVectorScorer`
  ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  `RandomVectorScorer`
  ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`

- ## Uses of RandomVectorScorer in org.apache.lucene.codecs.lucene104

  Methods in org.apache.lucene.codecs.lucene104 that return RandomVectorScorer
  Modifier and Type
  Method
  Description
  `RandomVectorScorer`
  Lucene104ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  `RandomVectorScorer`
  Lucene104ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`
  `RandomVectorScorer`
  Lucene104ScalarQuantizedVectorsReader.`getRandomVectorScorer(String field, byte[] target)`
  `RandomVectorScorer`
  Lucene104ScalarQuantizedVectorsReader.`getRandomVectorScorer(String field, float[] target)`

- ## Uses of RandomVectorScorer in org.apache.lucene.codecs.lucene99

  Methods in org.apache.lucene.codecs.lucene99 that return RandomVectorScorer
  Modifier and Type
  Method
  Description
  `RandomVectorScorer`
  Lucene99FlatVectorsReader.`getRandomVectorScorer(String field, byte[] target)`
  `RandomVectorScorer`
  Lucene99FlatVectorsReader.`getRandomVectorScorer(String field, float[] target)`
  `RandomVectorScorer`
  Lucene99ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target)`
  `RandomVectorScorer`
  Lucene99ScalarQuantizedVectorScorer.`getRandomVectorScorer(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target)`

- ## Uses of RandomVectorScorer in org.apache.lucene.search

  Methods in org.apache.lucene.search with parameters of type RandomVectorScorer
  Modifier and Type
  Method
  Description
  `static VectorScorer.Bulk`
  VectorScorer.Bulk.`fromRandomScorerDense(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs)`
  `static VectorScorer.Bulk`
  VectorScorer.Bulk.`fromRandomScorerSparse(RandomVectorScorer scorer, KnnVectorValues.DocIndexIterator iterator, DocIdSetIterator matchingDocs)`

- ## Uses of RandomVectorScorer in org.apache.lucene.util.hnsw

  Subinterfaces of RandomVectorScorer in org.apache.lucene.util.hnsw
  Modifier and Type
  Interface
  Description
  `interface`
  `UpdateableRandomVectorScorer`
  Just like a `RandomVectorScorer` but allows the scoring ordinal to be changed.
  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.
  `static class`
  `UpdateableRandomVectorScorer.AbstractUpdateableRandomVectorScorer`
  Creates a default scorer for random access vectors.
  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)`
  Search `OnHeapHnswGraph`, this method is thread safe.
  `static void`
  HnswGraphSearcher.`search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds)`
  See `HnswGraphSearcher.search(RandomVectorScorer, KnnCollector, HnswGraph, Bits, int)`
  `static void`
  HnswGraphSearcher.`search(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, Bits acceptOrds, int filteredDocCount)`
  Searches the 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.