From da67b56272b4c8d6f4f5a02f87520c933cf728de Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sat, 12 Mar 2016 04:56:23 -0500 Subject: [PATCH] don't wrap index reader in this test: it requires leaf readers --- .../core/src/test/org/apache/lucene/search/TestTermScorer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestTermScorer.java b/lucene/core/src/test/org/apache/lucene/search/TestTermScorer.java index 2cdcba4db2c..1ce1bc671fe 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestTermScorer.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestTermScorer.java @@ -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()); }