get

open override fun get(leadCost: Long): Scorer

Get the Scorer. This may not return null and must be called at most once.

Parameters

leadCost

Cost of the scorer that will be used in order to lead iteration. This can be interpreted as an upper bound of the number of times that DocIdSetIterator.nextDoc, DocIdSetIterator.advance and TwoPhaseIterator.matches will be called. Under doubt, pass Long.MAX_VALUE, which will produce a Scorer that has good iteration capabilities.