ConstantScoreScorer

constructor(score: Float, scoreMode: ScoreMode?, disi: DocIdSetIterator)

Constructor based on a DocIdSetIterator which will be used to drive iteration. Two phase iteration will not be supported.

Parameters

score

the score to return on each document

scoreMode

the score mode

disi

the iterator that defines matching documents


constructor(score: Float, scoreMode: ScoreMode?, twoPhaseIterator: TwoPhaseIterator)

Constructor based on a TwoPhaseIterator. In that case the Scorer will support two-phase iteration.

Parameters

score

the score to return on each document

scoreMode

the score mode

twoPhaseIterator

the iterator that defines matching documents