Uses of Class
org.apache.lucene.util.hnsw.HnswGraph
-
Packages that use HnswGraph Package Description org.apache.lucene.backward_codecs.lucene90 Lucene 9.0 file format.org.apache.lucene.backward_codecs.lucene91 Lucene 9.1 file format.org.apache.lucene.codecs.lucene92 Lucene 9.2 file format.org.apache.lucene.util.hnsw 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.lucene90 Modifier and Type Class Description private static class
Lucene90HnswVectorsReader.OffHeapHnswGraph
Read the nearest-neighbors graph from the index inputclass
Lucene90OnHeapHnswGraph
AnHnswGraph
where all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene90 that return HnswGraph Modifier and Type Method Description HnswGraph
Lucene90HnswVectorsReader. getGraphValues(java.lang.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 HnswGraph Modifier and Type Method Description static NeighborQueue
Lucene90OnHeapHnswGraph. search(float[] query, int topK, int numSeed, RandomAccessVectorValues vectors, VectorSimilarityFunction similarityFunction, HnswGraph graphValues, Bits acceptOrds, int visitedLimit, java.util.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.lucene91 Modifier and Type Class Description private static class
Lucene91HnswVectorsReader.OffHeapHnswGraph
Read the nearest-neighbors graph from the index inputclass
Lucene91OnHeapHnswGraph
AnHnswGraph
where all nodes and connections are held in memory.Methods in org.apache.lucene.backward_codecs.lucene91 that return HnswGraph Modifier and Type Method Description HnswGraph
Lucene91HnswVectorsReader. getGraph(java.lang.String field)
Get knn graph values; used for testingprivate HnswGraph
Lucene91HnswVectorsReader. getGraph(Lucene91HnswVectorsReader.FieldEntry entry)
-
Uses of HnswGraph in org.apache.lucene.codecs.lucene92
Subclasses of HnswGraph in org.apache.lucene.codecs.lucene92 Modifier and Type Class Description private static class
Lucene92HnswVectorsReader.OffHeapHnswGraph
Read the nearest-neighbors graph from the index inputMethods in org.apache.lucene.codecs.lucene92 that return HnswGraph Modifier and Type Method Description HnswGraph
Lucene92HnswVectorsReader. getGraph(java.lang.String field)
Get knn graph values; used for testingprivate HnswGraph
Lucene92HnswVectorsReader. getGraph(Lucene92HnswVectorsReader.FieldEntry entry)
-
Uses of HnswGraph in org.apache.lucene.util.hnsw
Subclasses of HnswGraph in org.apache.lucene.util.hnsw Modifier and Type Class Description class
OnHeapHnswGraph
AnHnswGraph
where all nodes and connections are held in memory.Fields in org.apache.lucene.util.hnsw declared as HnswGraph Modifier and Type Field Description static HnswGraph
HnswGraph. EMPTY
Empty graph valueMethods in org.apache.lucene.util.hnsw with parameters of type HnswGraph Modifier and Type Method Description static 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.NeighborQueue
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)
-