mirror of https://github.com/apache/lucene.git
Fix TestConstantScoreQuery too.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1663329 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f3edb95218
commit
40bbcfee0f
|
@ -224,7 +224,7 @@ public class TestConstantScoreQuery extends LuceneTestCase {
|
|||
ConstantScoreQuery q = new ConstantScoreQuery(pq);
|
||||
|
||||
final Weight weight = searcher.createNormalizedWeight(q, true);
|
||||
final Scorer scorer = weight.scorer(reader.leaves().get(0), null);
|
||||
final Scorer scorer = weight.scorer(searcher.getIndexReader().leaves().get(0), null);
|
||||
assertNotNull(scorer.asTwoPhaseIterator());
|
||||
|
||||
reader.close();
|
||||
|
|
Loading…
Reference in New Issue