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:
Adrien Grand 2015-03-02 15:32:05 +00:00
parent f3edb95218
commit 40bbcfee0f
1 changed files with 1 additions and 1 deletions

View File

@ -224,7 +224,7 @@ public class TestConstantScoreQuery extends LuceneTestCase {
ConstantScoreQuery q = new ConstantScoreQuery(pq); ConstantScoreQuery q = new ConstantScoreQuery(pq);
final Weight weight = searcher.createNormalizedWeight(q, true); 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()); assertNotNull(scorer.asTwoPhaseIterator());
reader.close(); reader.close();