Uses of Class
org.apache.lucene.util.hnsw.HnswGraphSearcher
-
Packages that use HnswGraphSearcher Package Description org.apache.lucene.util.hnsw 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.hnsw Modifier and Type Class Description private static class
HnswConcurrentMergeBuilder.MergeSearcher
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
HnswGraphSearcher.OnHeapHnswGraphSearcher
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 HnswGraphSearcher Modifier and Type Field Description private HnswGraphSearcher
HnswGraphBuilder. graphSearcher
Methods in org.apache.lucene.util.hnsw with parameters of type HnswGraphSearcher Modifier and Type Method Description private 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 HnswGraphSearcher Constructor Description HnswGraphBuilder(RandomVectorScorerSupplier scorerSupplier, int M, int beamWidth, long seed, OnHeapHnswGraph hnsw, 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.
-