Uses of Class
org.apache.lucene.index.FloatVectorValues
Packages that use FloatVectorValues
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.
Lucene 9.5 file format.
Codecs API: API for customization of the encoding and structure of the index.
HNSW vector helper classes.
Lucene 9.5 file format.
Lucene 9.9 file format.
Postings format that can delegate to different formats per-field.
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
Highlighting search terms.
Provides quantization methods for scaling vector values to smaller data types and possibly fewer
dimensions
-
Uses of FloatVectorValues in org.apache.lucene.analysis.synonym.word2vec
Subclasses of FloatVectorValues 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 FloatVectorValues in org.apache.lucene.backward_codecs.lucene90
Subclasses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene90Modifier and TypeClassDescription(package private) static class
Read the vector values from the index input.Fields in org.apache.lucene.backward_codecs.lucene90 declared as FloatVectorValuesModifier and TypeFieldDescriptionprivate final FloatVectorValues
Lucene90HnswGraphBuilder.buildVectors
private final FloatVectorValues
Lucene90HnswGraphBuilder.vectorValues
Methods in org.apache.lucene.backward_codecs.lucene90 that return FloatVectorValuesMethods in org.apache.lucene.backward_codecs.lucene90 with parameters of type FloatVectorValuesModifier and TypeMethodDescriptionLucene90HnswGraphBuilder.build
(FloatVectorValues vectors) Reads all the vectors from two copies of aFloatVectorValues
.private boolean
Lucene90HnswGraphBuilder.diversityCheck
(float[] candidate, float score, Lucene90NeighborArray neighbors, FloatVectorValues vectorValues) static NeighborQueue
Lucene90OnHeapHnswGraph.search
(float[] query, int topK, int numSeed, FloatVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, long visitedLimit, SplittableRandom random) Searches for the nearest neighbors of a query vector.Constructors in org.apache.lucene.backward_codecs.lucene90 with parameters of type FloatVectorValuesModifierConstructorDescriptionLucene90HnswGraphBuilder
(FloatVectorValues vectors, VectorSimilarityFunction similarityFunction, int maxConn, int beamWidth, long seed) Reads all the vectors from vector values, builds a graph connecting them by their dense ordinals, using the given hyperparameter settings, and returns the resulting graph. -
Uses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene91
Subclasses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene91Modifier and TypeClassDescription(package private) static class
Read the vector values from the index input.Methods in org.apache.lucene.backward_codecs.lucene91 that return FloatVectorValues -
Uses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene92
Subclasses of FloatVectorValues 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
Methods in org.apache.lucene.backward_codecs.lucene92 that return FloatVectorValues -
Uses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene94
Subclasses of FloatVectorValues 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
Methods in org.apache.lucene.backward_codecs.lucene94 that return FloatVectorValues -
Uses of FloatVectorValues in org.apache.lucene.backward_codecs.lucene95
Methods in org.apache.lucene.backward_codecs.lucene95 that return FloatVectorValues -
Uses of FloatVectorValues in org.apache.lucene.codecs
Subclasses of FloatVectorValues in org.apache.lucene.codecsModifier and TypeClassDescriptionprivate static class
private static class
Sorting FloatVectorValues that iterate over documents in the order of the provided sortMap(package private) static class
Fields in org.apache.lucene.codecs declared as FloatVectorValuesModifier and TypeFieldDescription(package private) final FloatVectorValues
KnnVectorsWriter.FloatVectorValuesSub.values
Methods in org.apache.lucene.codecs that return FloatVectorValuesModifier and TypeMethodDescriptionKnnVectorsWriter.MergedVectorValues.MergedFloat32VectorValues.copy()
abstract FloatVectorValues
KnnVectorsReader.getFloatVectorValues
(String field) Returns theFloatVectorValues
for the givenfield
.static FloatVectorValues
KnnVectorsWriter.MergedVectorValues.mergeFloatVectorValues
(FieldInfo fieldInfo, MergeState mergeState) Returns a merged view over all the segment'sFloatVectorValues
.Methods in org.apache.lucene.codecs with parameters of type FloatVectorValuesModifier and TypeMethodDescriptionprotected abstract void
BufferingKnnVectorsWriter.writeField
(FieldInfo fieldInfo, FloatVectorValues floatVectorValues, int maxDoc) Write the provided float vector fieldConstructors in org.apache.lucene.codecs with parameters of type FloatVectorValuesModifierConstructorDescription(package private)
FloatVectorValuesSub
(MergeState.DocMap docMap, FloatVectorValues values) -
Uses of FloatVectorValues in org.apache.lucene.codecs.hnsw
Fields in org.apache.lucene.codecs.hnsw declared as FloatVectorValuesModifier and TypeFieldDescriptionprivate final FloatVectorValues
DefaultFlatVectorScorer.FloatVectorScorer.values
private final FloatVectorValues
DefaultFlatVectorScorer.FloatScoringSupplier.vectors
private final FloatVectorValues
DefaultFlatVectorScorer.FloatScoringSupplier.vectors1
private final FloatVectorValues
DefaultFlatVectorScorer.FloatScoringSupplier.vectors2
Constructors in org.apache.lucene.codecs.hnsw with parameters of type FloatVectorValuesModifierConstructorDescriptionprivate
FloatScoringSupplier
(FloatVectorValues vectors, VectorSimilarityFunction similarityFunction) FloatVectorScorer
(FloatVectorValues values, float[] query, VectorSimilarityFunction similarityFunction) -
Uses of FloatVectorValues in org.apache.lucene.codecs.lucene95
Subclasses of FloatVectorValues 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
-
Uses of FloatVectorValues in org.apache.lucene.codecs.lucene99
Subclasses of FloatVectorValues in org.apache.lucene.codecs.lucene99Modifier and TypeClassDescriptionprivate static final class
(package private) static class
(package private) static final class
Fields in org.apache.lucene.codecs.lucene99 declared as FloatVectorValuesModifier and TypeFieldDescriptionprivate final FloatVectorValues
Lucene99ScalarQuantizedVectorsReader.QuantizedVectorValues.rawVectorValues
private final FloatVectorValues
Lucene99ScalarQuantizedVectorsWriter.NormalizedFloatVectorValues.values
private final FloatVectorValues
Lucene99ScalarQuantizedVectorsWriter.QuantizedFloatVectorValues.values
Methods in org.apache.lucene.codecs.lucene99 that return FloatVectorValuesModifier and TypeMethodDescriptionLucene99ScalarQuantizedVectorsWriter.FloatVectorWrapper.copy()
Lucene99FlatVectorsReader.getFloatVectorValues
(String field) Lucene99HnswVectorsReader.getFloatVectorValues
(String field) Lucene99ScalarQuantizedVectorsReader.getFloatVectorValues
(String field) Methods in org.apache.lucene.codecs.lucene99 with parameters of type FloatVectorValuesModifier and TypeMethodDescription(package private) static ScalarQuantizer
Lucene99ScalarQuantizedVectorsWriter.buildScalarQuantizer
(FloatVectorValues floatVectorValues, int numVectors, VectorSimilarityFunction vectorSimilarityFunction, Float confidenceInterval, byte bits) private static DocsWithFieldSet
Lucene99FlatVectorsWriter.writeVectorData
(IndexOutput output, FloatVectorValues floatVectorValues) Writes the vector values to the output and returns a set of documents that contains vectors.Constructors in org.apache.lucene.codecs.lucene99 with parameters of type FloatVectorValuesModifierConstructorDescriptionQuantizedFloatVectorValues
(FloatVectorValues values, VectorSimilarityFunction vectorSimilarityFunction, ScalarQuantizer quantizer) (package private)
QuantizedVectorValues
(FloatVectorValues rawVectorValues, QuantizedByteVectorValues quantizedVectorValues) -
Uses of FloatVectorValues in org.apache.lucene.codecs.perfield
Methods in org.apache.lucene.codecs.perfield that return FloatVectorValuesModifier and TypeMethodDescriptionPerFieldKnnVectorsFormat.FieldsReader.getFloatVectorValues
(String field) -
Uses of FloatVectorValues in org.apache.lucene.codecs.simpletext
Subclasses of FloatVectorValues in org.apache.lucene.codecs.simpletextModifier and TypeClassDescriptionprivate static class
Methods in org.apache.lucene.codecs.simpletext that return FloatVectorValuesMethods in org.apache.lucene.codecs.simpletext with parameters of type FloatVectorValuesModifier and TypeMethodDescriptionvoid
SimpleTextKnnVectorsWriter.writeField
(FieldInfo fieldInfo, FloatVectorValues floatVectorValues, int maxDoc) private void
SimpleTextKnnVectorsWriter.writeFloatVectorValue
(FloatVectorValues vectors, int ord) -
Uses of FloatVectorValues in org.apache.lucene.index
Subclasses of FloatVectorValues in org.apache.lucene.indexModifier and TypeClassDescriptionprivate class
(package private) class
private static class
Sorting FloatVectorValues that maps ordinals using the provided sortMapFields in org.apache.lucene.index declared as FloatVectorValuesModifier and TypeFieldDescription(package private) final FloatVectorValues
SortingCodecReader.SortingFloatVectorValues.delegate
private final FloatVectorValues
ExitableDirectoryReader.ExitableFilterAtomicReader.ExitableFloatVectorValues.vectorValues
Fields in org.apache.lucene.index with type parameters of type FloatVectorValuesModifier and TypeFieldDescription(package private) final SlowCompositeCodecReaderWrapper.MergedDocIterator
<FloatVectorValues> SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.MergedFloatVectorValues.iter
Methods in org.apache.lucene.index that return FloatVectorValuesModifier and TypeMethodDescriptionExitableDirectoryReader.ExitableFilterAtomicReader.ExitableFloatVectorValues.copy()
abstract FloatVectorValues
FloatVectorValues.copy()
SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.MergedFloatVectorValues.copy()
SortingCodecReader.SortingFloatVectorValues.copy()
static FloatVectorValues
FloatVectorValues.fromFloats
(List<float[]> vectors, int dim) Creates aFloatVectorValues
from a list of float arrays.final FloatVectorValues
CodecReader.getFloatVectorValues
(String field) final FloatVectorValues
DocValuesLeafReader.getFloatVectorValues
(String field) ExitableDirectoryReader.ExitableFilterAtomicReader.getFloatVectorValues
(String field) FilterLeafReader.getFloatVectorValues
(String field) abstract FloatVectorValues
LeafReader.getFloatVectorValues
(String field) ReturnsFloatVectorValues
for this field, or null if noFloatVectorValues
were indexed.ParallelLeafReader.getFloatVectorValues
(String fieldName) SlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.getFloatVectorValues
(String field) Methods in org.apache.lucene.index that return types with arguments of type FloatVectorValuesModifier and TypeMethodDescriptionSlowCompositeCodecReaderWrapper.SlowCompositeKnnVectorsReaderWrapper.MergedFloatVectorValues.iterator()
Methods in org.apache.lucene.index with parameters of type FloatVectorValuesModifier and TypeMethodDescriptionprivate static void
CheckIndex.checkFloatVectorValues
(FloatVectorValues values, FieldInfo fieldInfo, CheckIndex.Status.VectorValuesStatus status, CodecReader codecReader) Constructors in org.apache.lucene.index with parameters of type FloatVectorValuesModifierConstructorDescriptionExitableFloatVectorValues
(FloatVectorValues vectorValues) (package private)
SortingFloatVectorValues
(FloatVectorValues delegate, Sorter.DocMap sortMap) Constructor parameters in org.apache.lucene.index with type arguments of type FloatVectorValuesModifierConstructorDescription(package private)
MergedFloatVectorValues
(int dimension, int size, List<SlowCompositeCodecReaderWrapper.DocValuesSub<FloatVectorValues>> subs) -
Uses of FloatVectorValues in org.apache.lucene.index.memory
Subclasses of FloatVectorValues in org.apache.lucene.index.memoryMethods in org.apache.lucene.index.memory that return FloatVectorValuesModifier and TypeMethodDescriptionMemoryIndex.MemoryIndexReader.getFloatVectorValues
(String fieldName) -
Uses of FloatVectorValues in org.apache.lucene.sandbox.codecs.quantization
Subclasses of FloatVectorValues in org.apache.lucene.sandbox.codecs.quantizationModifier and TypeClassDescriptionclass
A reader of vector values that samples a subset of the vectors.Fields in org.apache.lucene.sandbox.codecs.quantization declared as FloatVectorValuesModifier and TypeFieldDescriptionprivate final FloatVectorValues
SampleReader.origin
private final FloatVectorValues
KMeans.vectors
Methods in org.apache.lucene.sandbox.codecs.quantization that return FloatVectorValuesMethods in org.apache.lucene.sandbox.codecs.quantization with parameters of type FloatVectorValuesModifier and TypeMethodDescription(package private) static void
KMeans.assignCentroids
(FloatVectorValues vectors, float[][] centroids, List<Integer> unassignedCentroidsIdxs) For centroids that did not get any points, assign outlying points to them chose points by descending distance to the current centroid setstatic KMeans.Results
KMeans.cluster
(FloatVectorValues vectors, int numClusters, boolean assignCentroidsToVectors, long seed, KMeans.KmeansInitializationMethod initializationMethod, boolean normalizeCenters, int restarts, int iters, int sampleSize) Expert: Cluster vectors into a given number of clustersstatic KMeans.Results
KMeans.cluster
(FloatVectorValues vectors, VectorSimilarityFunction similarityFunction, int numClusters) Cluster vectors into a given number of clustersstatic SampleReader
SampleReader.createSampleReader
(FloatVectorValues origin, int k, long seed) private static double
KMeans.runKMeansStep
(FloatVectorValues vectors, float[][] centroids, short[] docCentroids, boolean useKahanSummation, boolean normalizeCentroids) Run kmeans stepConstructors in org.apache.lucene.sandbox.codecs.quantization with parameters of type FloatVectorValuesModifierConstructorDescriptionprivate
KMeans
(FloatVectorValues vectors, int numCentroids, Random random, KMeans.KmeansInitializationMethod initializationMethod, int restarts, int iters) (package private)
SampleReader
(FloatVectorValues origin, int sampleSize, IntUnaryOperator sampleFunction) -
Uses of FloatVectorValues in org.apache.lucene.search.highlight
Methods in org.apache.lucene.search.highlight that return FloatVectorValues -
Uses of FloatVectorValues in org.apache.lucene.util.quantization
Methods in org.apache.lucene.util.quantization with parameters of type FloatVectorValuesModifier and TypeMethodDescriptionstatic ScalarQuantizer
ScalarQuantizer.fromVectors
(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount, byte bits) This will read the float vector values and calculate the quantiles.(package private) static ScalarQuantizer
ScalarQuantizer.fromVectors
(FloatVectorValues floatVectorValues, float confidenceInterval, int totalVectorCount, byte bits, int quantizationSampleSize) static ScalarQuantizer
ScalarQuantizer.fromVectorsAutoInterval
(FloatVectorValues floatVectorValues, VectorSimilarityFunction function, int totalVectorCount, byte bits)