Uses of Class
org.apache.lucene.util.hnsw.HnswGraphSearcher
Packages that use HnswGraphSearcher
Package
Description
Navigable Small-World graph, nominally Hierarchical but currently only has a single layer.
-
Uses of HnswGraphSearcher in org.apache.lucene.util.hnsw
Subclasses of HnswGraphSearcher in org.apache.lucene.util.hnswModifier and TypeClassDescriptionprivate static class
This searcher will obtain the lock and make a copy of neighborArray when seeking the graph such that concurrent modification of the graph will not impact the searchprivate static class
This class allowsOnHeapHnswGraph
to be searched in a thread-safe manner by avoiding the unsafe methods (seek and nextNeighbor, which maintain state in the graph object) and instead maintaining the state in the searcher object.Fields in org.apache.lucene.util.hnsw declared as HnswGraphSearcherMethods in org.apache.lucene.util.hnsw with parameters of type HnswGraphSearcherModifier and TypeMethodDescriptionprivate static void
HnswGraphSearcher.search
(RandomVectorScorer scorer, KnnCollector knnCollector, HnswGraph graph, HnswGraphSearcher graphSearcher, Bits acceptOrds) Constructors in org.apache.lucene.util.hnsw with parameters of type HnswGraphSearcherModifierConstructorDescriptionprotected
HnswGraphBuilder
(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, HnswLock hnswLock, HnswGraphSearcher graphSearcher) 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.