mirror of https://github.com/apache/lucene.git
don't wrap index reader in this test: it requires leaf readers
This commit is contained in:
parent
a4722845e3
commit
da67b56272
|
@ -60,7 +60,7 @@ public class TestTermScorer extends LuceneTestCase {
|
|||
writer.forceMerge(1);
|
||||
indexReader = getOnlyLeafReader(writer.getReader());
|
||||
writer.close();
|
||||
indexSearcher = newSearcher(indexReader);
|
||||
indexSearcher = newSearcher(indexReader, false);
|
||||
indexSearcher.setSimilarity(new ClassicSimilarity());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue