don't wrap index reader in this test: it requires leaf readers

This commit is contained in:
Mike McCandless 2016-03-12 04:56:23 -05:00
parent a4722845e3
commit da67b56272
1 changed files with 1 additions and 1 deletions

View File

@ -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());
}