Uses of Class
org.apache.lucene.util.hnsw.HnswGraph
Packages that use HnswGraph
Package
Description
Lucene 9.0 file format.
Lucene 9.1 file format.
Lucene 9.2 file format.
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of HnswGraph in org.apache.lucene.backward_codecs.lucene90
Subclasses of HnswGraph in org.apache.lucene.backward_codecs.lucene90Modifier and TypeClassDescriptionprivate static final class
Read the nearest-neighbors graph from the index inputfinal class
AnHnswGraph
where all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene90 that return HnswGraphModifier and TypeMethodDescriptionLucene90HnswVectorsReader.getGraphValues
(String field) Get knn graph values; used for testingprivate HnswGraph
Lucene90HnswVectorsReader.getGraphValues
(Lucene90HnswVectorsReader.FieldEntry entry) Methods in org.apache.lucene.backward_codecs.lucene90 with parameters of type HnswGraphModifier and TypeMethodDescriptionstatic NeighborQueue
Lucene90OnHeapHnswGraph.search
(float[] query, int topK, int numSeed, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, int visitedLimit, SplittableRandom random) Searches for the nearest neighbors of a query vector. -
Uses of HnswGraph in org.apache.lucene.backward_codecs.lucene91
Subclasses of HnswGraph in org.apache.lucene.backward_codecs.lucene91Modifier and TypeClassDescriptionprivate static final class
Read the nearest-neighbors graph from the index inputfinal class
AnHnswGraph
where all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene91 that return HnswGraph -
Uses of HnswGraph in org.apache.lucene.codecs.lucene92
Subclasses of HnswGraph in org.apache.lucene.codecs.lucene92Modifier and TypeClassDescriptionprivate static final class
Read the nearest-neighbors graph from the index inputMethods in org.apache.lucene.codecs.lucene92 that return HnswGraph -
Uses of HnswGraph in org.apache.lucene.util.hnsw
Subclasses of HnswGraph in org.apache.lucene.util.hnswModifier and TypeClassDescriptionfinal class
AnHnswGraph
where all nodes and connections are held in memory.Fields in org.apache.lucene.util.hnsw declared as HnswGraphMethods in org.apache.lucene.util.hnsw with parameters of type HnswGraphModifier and TypeMethodDescriptionstatic NeighborQueue
HnswGraphSearcher.search
(float[] query, int topK, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graph, Bits acceptOrds, int visitedLimit) Searches HNSW graph for the nearest neighbors of a query vector.HnswGraphSearcher.searchLevel
(float[] query, int topK, int level, int[] eps, RandomAccessVectorValues vectors, HnswGraph graph) Searches for the nearest neighbors of a query vector in a given level.private NeighborQueue
HnswGraphSearcher.searchLevel
(float[] query, int topK, int level, int[] eps, RandomAccessVectorValues vectors, HnswGraph graph, Bits acceptOrds, int visitedLimit)