@Override public Scorer scorer(LeafReaderContext context) throws IOException { DocIdSetIterator iterator = createDocIdSetIterator( context ); return new ConstantScoreScorer( this, score(), iterator ); } };
@Override public Scorer scorer(LeafReaderContext context) throws IOException { DocIdSetIterator iterator = createDocIdSetIterator( context ); return new ConstantScoreScorer( this, score(), iterator ); } };
@Override public Scorer scorer(LeafReaderContext context) throws IOException { Scorer approximationScorer = approximationWeight.scorer( context ); if ( approximationScorer == null ) { // No result return null; } DocIdSetIterator approximation = approximationScorer.iterator(); TwoPhaseIterator iterator = createDocIdSetIterator( approximation, context ); return new ConstantScoreScorer( this, score(), iterator ); } };
@Override public Scorer scorer(LeafReaderContext context) throws IOException { Scorer approximationScorer = approximationWeight.scorer( context ); if ( approximationScorer == null ) { // No result return null; } DocIdSetIterator approximation = approximationScorer.iterator(); TwoPhaseIterator iterator = createDocIdSetIterator( approximation, context ); return new ConstantScoreScorer( this, score(), iterator ); } };