Uses of Class
org.apache.lucene.index.KnnVectorValues
Packages that use KnnVectorValues
Package
Description
Analysis components for Synonyms using Word2Vec model.
Lucene 9.0 file format.
Lucene 9.1 file format.
Lucene 9.2 file format.
Lucene 9.4 file format.
Codecs API: API for customization of the encoding and structure of the index.
A simple bit-vector format that supports hamming distance and storing vectors in an HNSW graph
HNSW vector helper classes.
Lucene 9.5 file format.
Lucene 9.9 file format.
Simpletext Codec: writes human readable postings.
Code to maintain and access indices.
High-performance single-document main memory Apache Lucene fulltext search index.
This package implements KMeans algorithm for clustering vectors
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
Provides quantization methods for scaling vector values to smaller data types and possibly fewer
dimensions
-
Uses of KnnVectorValues in org.apache.lucene.analysis.synonym.word2vec
Subclasses of KnnVectorValues in org.apache.lucene.analysis.synonym.word2vecModifier and TypeClassDescriptionclass
Word2VecModel is a class representing the parsed Word2Vec model containing the vectors for each word in dictionary -
Uses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene90
Subclasses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene90Modifier and TypeClassDescription(package private) static class
Read the vector values from the index input. -
Uses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene91
Subclasses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene91Modifier and TypeClassDescription(package private) static class
Read the vector values from the index input. -
Uses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene92
Subclasses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene92Modifier and TypeClassDescription(package private) class
Read the vector values from the index input.(package private) static class
private static class
private static class
-
Uses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene94
Subclasses of KnnVectorValues in org.apache.lucene.backward_codecs.lucene94Modifier and TypeClassDescription(package private) class
Read the vector values from the index input.(package private) static class
private static class
private static class
(package private) class
Read the vector values from the index input.(package private) static class
private static class
private static class
-
Uses of KnnVectorValues in org.apache.lucene.codecs
Subclasses of KnnVectorValues in org.apache.lucene.codecsModifier and TypeClassDescriptionprivate static class
private static class
private static class
Sorting ByteVectorValues that iterate over documents in the order of the provided sortMapprivate static class
Sorting FloatVectorValues that iterate over documents in the order of the provided sortMap(package private) static class
(package private) static class
-
Uses of KnnVectorValues in org.apache.lucene.codecs.bitvectors
Methods in org.apache.lucene.codecs.bitvectors with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionFlatBitVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) FlatBitVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) FlatBitVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.codecs.hnsw
Methods in org.apache.lucene.codecs.hnsw with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionDefaultFlatVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) DefaultFlatVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) FlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) Returns aRandomVectorScorer
for the given set of vectors and target vector.FlatVectorsScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) Returns aRandomVectorScorer
for the given set of vectors and target vector.ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) DefaultFlatVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) FlatVectorsScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) Returns aRandomVectorScorerSupplier
that can be used to score vectorsScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.codecs.lucene95
Subclasses of KnnVectorValues in org.apache.lucene.codecs.lucene95Modifier and TypeClassDescriptionclass
Read the vector values from the index input.static class
Dense vector values that are stored off-heap.private static class
private static class
class
Read the vector values from the index input.static class
Dense vector values that are stored off-heap.private static class
private static class
-
Uses of KnnVectorValues in org.apache.lucene.codecs.lucene99
Subclasses of KnnVectorValues in org.apache.lucene.codecs.lucene99Modifier and TypeClassDescriptionprivate static final class
(package private) static class
(package private) static class
Returns a merged view over all the segment'sQuantizedByteVectorValues
.(package private) static final class
(package private) static final class
(package private) static class
class
Read the quantized vector values and their score correction values from the index input.static class
Dense vector values that are stored off-heap.private static class
private static class
Methods in org.apache.lucene.codecs.lucene99 with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionLucene99ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, byte[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorer
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues, float[] target) Lucene99ScalarQuantizedVectorScorer.getRandomVectorScorerSupplier
(VectorSimilarityFunction similarityFunction, KnnVectorValues vectorValues) -
Uses of KnnVectorValues in org.apache.lucene.codecs.simpletext
Subclasses of KnnVectorValues in org.apache.lucene.codecs.simpletextModifier and TypeClassDescriptionprivate static class
private static class
-
Uses of KnnVectorValues in org.apache.lucene.index
Classes in org.apache.lucene.index with type parameters of type KnnVectorValuesModifier and TypeClassDescriptionprivate static final record
private static class
Subclasses of KnnVectorValues in org.apache.lucene.indexModifier and TypeClassDescriptionclass
This class provides access to per-document floating point vector values indexed asKnnByteVectorField
.private class
private class
class
This class provides access to per-document floating point vector values indexed asKnnFloatVectorField
.(package private) class
(package private) class
private static class
private static class
Sorting FloatVectorValues that maps ordinals using the provided sortMapFields in org.apache.lucene.index declared as KnnVectorValuesModifier and TypeFieldDescriptionprivate final T
SlowCompositeCodecReaderWrapper.DocValuesSub.sub
The field for thesub
record component.Methods in org.apache.lucene.index that return KnnVectorValuesModifier and TypeMethodDescriptionabstract KnnVectorValues
KnnVectorValues.copy()
Creates a new copy of thisKnnVectorValues
.Methods in org.apache.lucene.index with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionSortingCodecReader.iteratorSupplier
(KnnVectorValues values, Sorter.DocMap docMap) Creates a factory for SortingValuesIterator. -
Uses of KnnVectorValues in org.apache.lucene.index.memory
Subclasses of KnnVectorValues in org.apache.lucene.index.memoryModifier and TypeClassDescriptionprivate static final class
private static final class
-
Uses of KnnVectorValues in org.apache.lucene.sandbox.codecs.quantization
Subclasses of KnnVectorValues in org.apache.lucene.sandbox.codecs.quantizationModifier and TypeClassDescriptionclass
A reader of vector values that samples a subset of the vectors. -
Uses of KnnVectorValues in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as KnnVectorValuesModifier and TypeFieldDescriptionprivate final KnnVectorValues
RandomVectorScorer.AbstractRandomVectorScorer.values
Methods in org.apache.lucene.util.hnsw with parameters of type KnnVectorValuesModifier and TypeMethodDescriptionprotected HnswBuilder
ConcurrentHnswMerger.createBuilder
(KnnVectorValues mergedVectorValues, int maxOrd) protected HnswBuilder
IncrementalHnswGraphMerger.createBuilder
(KnnVectorValues mergedVectorValues, int maxOrd) Builds a new HnswGraphBuilder using the biggest graph from the merge state as a starting point.protected final int[]
IncrementalHnswGraphMerger.getNewOrdMapping
(KnnVectorValues mergedVectorValues, BitSet initializedNodes) Creates a new mapping from old ordinals to new ordinals and returns the total number of vectors in the newly merged segment.HnswGraphMerger.merge
(KnnVectorValues mergedVectorValues, InfoStream infoStream, int maxOrd) Merge and produce the on heap graphIncrementalHnswGraphMerger.merge
(KnnVectorValues mergedVectorValues, InfoStream infoStream, int maxOrd) Constructors in org.apache.lucene.util.hnsw with parameters of type KnnVectorValuesModifierConstructorDescriptionCreates a new scorer for the given vector values. -
Uses of KnnVectorValues in org.apache.lucene.util.quantization
Subclasses of KnnVectorValues in org.apache.lucene.util.quantizationModifier and TypeClassDescriptionclass
A version ofByteVectorValues
, but additionally retrieving score correction offset for Scalar quantization scores.