search

fun search(results: KnnCollector, scorer: RandomVectorScorer, graph: HnswGraph, acceptOrds: Bits?)

Search the graph for the given scorer. Gathering results in the provided collector that pass the provided acceptOrds.

Parameters

results

the collector to collect the results

scorer

the scorer to compare the query with the nodes

graph

the HNSWGraph

acceptOrds

the ordinals to accept for the results

Throws

IOException

When accessing the vectors or graph fails