newCollector

open override fun newCollector(visitedLimit: Int, searchStrategy: KnnSearchStrategy, context: LeafReaderContext): KnnCollector

Return a new KnnCollector instance.

Parameters

visitedLimit

the maximum number of nodes that the search is allowed to visit

searchStrategy

the optional search strategy configuration

context

the leaf reader context