Uses of Enum Class
org.apache.lucene.index.VectorSimilarityFunction
Packages that use VectorSimilarityFunction
Package
Description
Lucene 9.0 file format.
Lucene 9.1 file format.
Lucene 9.2 file format.
Lucene 9.4 file format.
Lucene 9.4 file format.
Lucene 9.5 file format.
Simpletext Codec: writes human readable postings.
The logical representation of a
Document for indexing and
searching.Code to maintain and access indices.
Code to search indices.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of VectorSimilarityFunction in org.apache.lucene.backward_codecs.lucene90
Fields in org.apache.lucene.backward_codecs.lucene90 declared as VectorSimilarityFunctionModifier and TypeFieldDescriptionprivate final VectorSimilarityFunctionLucene90HnswGraphBuilder.similarityFunction(package private) final VectorSimilarityFunctionLucene90HnswVectorsReader.FieldEntry.similarityFunctionMethods in org.apache.lucene.backward_codecs.lucene90 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate static VectorSimilarityFunctionLucene90FieldInfosFormat.getDistFunc(IndexInput input, byte b) private VectorSimilarityFunctionLucene90HnswVectorsReader.readSimilarityFunction(DataInput input) Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type VectorSimilarityFunctionModifier and TypeMethodDescriptionstatic NeighborQueueLucene90OnHeapHnswGraph.search(float[] query, int topK, int numSeed, RandomAccessVectorValues<float[]> vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, int visitedLimit, SplittableRandom random) Searches for the nearest neighbors of a query vector.Constructors in org.apache.lucene.backward_codecs.lucene90 with parameters of type VectorSimilarityFunctionModifierConstructorDescription(package private)FieldEntry(DataInput input, VectorSimilarityFunction similarityFunction) Lucene90HnswGraphBuilder(RandomAccessVectorValues<float[]> 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 VectorSimilarityFunction in org.apache.lucene.backward_codecs.lucene91
Fields in org.apache.lucene.backward_codecs.lucene91 declared as VectorSimilarityFunctionModifier and TypeFieldDescription(package private) final VectorSimilarityFunctionLucene91HnswVectorsReader.FieldEntry.similarityFunctionMethods in org.apache.lucene.backward_codecs.lucene91 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate VectorSimilarityFunctionLucene91HnswVectorsReader.readSimilarityFunction(DataInput input) Constructors in org.apache.lucene.backward_codecs.lucene91 with parameters of type VectorSimilarityFunctionModifierConstructorDescription(package private)FieldEntry(DataInput input, VectorSimilarityFunction similarityFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.backward_codecs.lucene92
Fields in org.apache.lucene.backward_codecs.lucene92 declared as VectorSimilarityFunctionModifier and TypeFieldDescription(package private) final VectorSimilarityFunctionLucene92HnswVectorsReader.FieldEntry.similarityFunctionMethods in org.apache.lucene.backward_codecs.lucene92 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate VectorSimilarityFunctionLucene92HnswVectorsReader.readSimilarityFunction(DataInput input) Constructors in org.apache.lucene.backward_codecs.lucene92 with parameters of type VectorSimilarityFunctionModifierConstructorDescription(package private)FieldEntry(IndexInput input, VectorSimilarityFunction similarityFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.backward_codecs.lucene94
Fields in org.apache.lucene.backward_codecs.lucene94 declared as VectorSimilarityFunctionModifier and TypeFieldDescription(package private) final VectorSimilarityFunctionLucene94HnswVectorsReader.FieldEntry.similarityFunctionMethods in org.apache.lucene.backward_codecs.lucene94 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate VectorSimilarityFunctionLucene94HnswVectorsReader.readSimilarityFunction(DataInput input) Constructors in org.apache.lucene.backward_codecs.lucene94 with parameters of type VectorSimilarityFunctionModifierConstructorDescription(package private)FieldEntry(IndexInput input, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.codecs.lucene94
Methods in org.apache.lucene.codecs.lucene94 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate static VectorSimilarityFunctionLucene94FieldInfosFormat.getDistFunc(IndexInput input, byte b) -
Uses of VectorSimilarityFunction in org.apache.lucene.codecs.lucene95
Fields in org.apache.lucene.codecs.lucene95 declared as VectorSimilarityFunctionModifier and TypeFieldDescription(package private) final VectorSimilarityFunctionLucene95HnswVectorsReader.FieldEntry.similarityFunctionMethods in org.apache.lucene.codecs.lucene95 that return VectorSimilarityFunctionModifier and TypeMethodDescriptionprivate VectorSimilarityFunctionLucene95HnswVectorsReader.readSimilarityFunction(DataInput input) Constructors in org.apache.lucene.codecs.lucene95 with parameters of type VectorSimilarityFunctionModifierConstructorDescription(package private)FieldEntry(IndexInput input, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.codecs.simpletext
Methods in org.apache.lucene.codecs.simpletext that return VectorSimilarityFunctionModifier and TypeMethodDescriptionSimpleTextFieldInfosFormat.distanceFunction(String scoreFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.document
Fields in org.apache.lucene.document declared as VectorSimilarityFunctionModifier and TypeFieldDescriptionprivate VectorSimilarityFunctionFieldType.vectorSimilarityFunctionMethods in org.apache.lucene.document that return VectorSimilarityFunctionMethods in org.apache.lucene.document with parameters of type VectorSimilarityFunctionModifier and TypeMethodDescriptionstatic FieldTypeKnnByteVectorField.createFieldType(int dimension, VectorSimilarityFunction similarityFunction) A convenience method for creating a vector field type.static FieldTypeKnnFloatVectorField.createFieldType(int dimension, VectorSimilarityFunction similarityFunction) A convenience method for creating a vector field type.private static FieldTypeKnnByteVectorField.createType(byte[] v, VectorSimilarityFunction similarityFunction) private static FieldTypeKnnFloatVectorField.createType(float[] v, VectorSimilarityFunction similarityFunction) voidFieldType.setVectorAttributes(int numDimensions, VectorEncoding encoding, VectorSimilarityFunction similarity) Enable vector indexing, with the specified number of dimensions and distance function.Constructors in org.apache.lucene.document with parameters of type VectorSimilarityFunctionModifierConstructorDescriptionKnnByteVectorField(String name, byte[] vector, VectorSimilarityFunction similarityFunction) Creates a numeric vector field.KnnFloatVectorField(String name, float[] vector, VectorSimilarityFunction similarityFunction) Creates a numeric vector field.KnnVectorField(String name, float[] vector, VectorSimilarityFunction similarityFunction) Deprecated.Creates a numeric vector field. -
Uses of VectorSimilarityFunction in org.apache.lucene.index
Fields in org.apache.lucene.index declared as VectorSimilarityFunctionModifier and TypeFieldDescription(package private) final VectorSimilarityFunctionFieldInfos.FieldVectorProperties.similarityFunctionprivate final VectorSimilarityFunctionFieldInfo.vectorSimilarityFunctionprivate VectorSimilarityFunctionIndexingChain.FieldSchema.vectorSimilarityFunctionMethods in org.apache.lucene.index that return VectorSimilarityFunctionModifier and TypeMethodDescriptionFieldInfo.getVectorSimilarityFunction()ReturnsVectorSimilarityFunctionfor the fieldstatic VectorSimilarityFunctionReturns the enum constant of this class with the specified name.static VectorSimilarityFunction[]VectorSimilarityFunction.values()Returns an array containing the constants of this enum class, in the order they are declared.IndexableFieldType.vectorSimilarityFunction()TheVectorSimilarityFunctionof the field's vector valueMethods in org.apache.lucene.index with parameters of type VectorSimilarityFunctionModifier and TypeMethodDescription(package private) voidIndexingChain.FieldSchema.setVectors(VectorEncoding encoding, VectorSimilarityFunction similarityFunction, int dimension) (package private) static voidFieldInfo.verifySameVectorOptions(String fieldName, int vd1, VectorEncoding ve1, VectorSimilarityFunction vsf1, int vd2, VectorEncoding ve2, VectorSimilarityFunction vsf2) Verify that the provided vector indexing options are the sameConstructors in org.apache.lucene.index with parameters of type VectorSimilarityFunctionModifierConstructorDescriptionFieldInfo(String name, int number, boolean storeTermVector, boolean omitNorms, boolean storePayloads, IndexOptions indexOptions, DocValuesType docValues, long dvGen, Map<String, String> attributes, int pointDimensionCount, int pointIndexDimensionCount, int pointNumBytes, int vectorDimension, VectorEncoding vectorEncoding, VectorSimilarityFunction vectorSimilarityFunction, boolean softDeletesField) Sole constructor.(package private)FieldVectorProperties(int numDimensions, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction) -
Uses of VectorSimilarityFunction in org.apache.lucene.search
Fields in org.apache.lucene.search declared as VectorSimilarityFunctionModifier and TypeFieldDescriptionprotected final VectorSimilarityFunctionVectorScorer.similarityConstructors in org.apache.lucene.search with parameters of type VectorSimilarityFunctionModifierConstructorDescriptionprotectedByteVectorScorer(ByteVectorValues values, byte[] query, VectorSimilarityFunction similarity) protectedFloatVectorScorer(FloatVectorValues values, float[] query, VectorSimilarityFunction similarity) (package private)VectorScorer(VectorSimilarityFunction similarity) -
Uses of VectorSimilarityFunction in org.apache.lucene.util.hnsw
Fields in org.apache.lucene.util.hnsw declared as VectorSimilarityFunctionModifier and TypeFieldDescriptionprivate final VectorSimilarityFunctionHnswGraphBuilder.similarityFunctionprivate final VectorSimilarityFunctionHnswGraphSearcher.similarityFunctionMethods in org.apache.lucene.util.hnsw with parameters of type VectorSimilarityFunctionModifier and TypeMethodDescriptionstatic <T> HnswGraphBuilder<T>HnswGraphBuilder.create(RandomAccessVectorValues<T> vectors, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction, int M, int beamWidth, long seed) static NeighborQueueHnswGraphSearcher.search(byte[] query, int topK, RandomAccessVectorValues<byte[]> vectors, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit) Searches HNSW graph for the nearest neighbors of a query vector.static NeighborQueueHnswGraphSearcher.search(float[] query, int topK, RandomAccessVectorValues<float[]> vectors, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit) Searches HNSW graph for the nearest neighbors of a query vector.Constructors in org.apache.lucene.util.hnsw with parameters of type VectorSimilarityFunctionModifierConstructorDescriptionprivateHnswGraphBuilder(RandomAccessVectorValues<T> vectors, VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction, int M, 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.HnswGraphSearcher(VectorEncoding vectorEncoding, VectorSimilarityFunction similarityFunction, NeighborQueue candidates, BitSet visited) Creates a new graph searcher.