From b420ad4e3c9a99e9bf4f5577a45ccce1e3904571 Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Sun, 13 Mar 2016 05:35:02 -0400 Subject: [PATCH] don't wrap searchers in this test --- .../lucene/queries/payloads/TestPayloadSpans.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lucene/queries/src/test/org/apache/lucene/queries/payloads/TestPayloadSpans.java b/lucene/queries/src/test/org/apache/lucene/queries/payloads/TestPayloadSpans.java index 179b971fbca..9e9228b16ae 100644 --- a/lucene/queries/src/test/org/apache/lucene/queries/payloads/TestPayloadSpans.java +++ b/lucene/queries/src/test/org/apache/lucene/queries/payloads/TestPayloadSpans.java @@ -125,7 +125,7 @@ public class TestPayloadSpans extends LuceneTestCase { IndexReader reader = getOnlyLeafReader(writer.getReader()); writer.close(); - checkSpans(snq.createWeight(newSearcher(reader), false).getSpans(reader.leaves().get(0), SpanWeight.Postings.PAYLOADS), 1, new int[]{2}); + checkSpans(snq.createWeight(newSearcher(reader, false), false).getSpans(reader.leaves().get(0), SpanWeight.Postings.PAYLOADS), 1, new int[]{2}); reader.close(); directory.close(); } @@ -264,7 +264,7 @@ public class TestPayloadSpans extends LuceneTestCase { writer.addDocument(doc); IndexReader reader = writer.getReader(); - IndexSearcher is = newSearcher(getOnlyLeafReader(reader)); + IndexSearcher is = newSearcher(getOnlyLeafReader(reader), false); writer.close(); SpanTermQuery stq1 = new SpanTermQuery(new Term("content", "a")); @@ -303,7 +303,7 @@ public class TestPayloadSpans extends LuceneTestCase { doc.add(new TextField("content", new StringReader("a b a d k f a h i k a k"))); writer.addDocument(doc); IndexReader reader = writer.getReader(); - IndexSearcher is = newSearcher(getOnlyLeafReader(reader)); + IndexSearcher is = newSearcher(getOnlyLeafReader(reader), false); writer.close(); SpanTermQuery stq1 = new SpanTermQuery(new Term("content", "a")); @@ -342,7 +342,7 @@ public class TestPayloadSpans extends LuceneTestCase { doc.add(new TextField("content", new StringReader("j k a l f k k p a t a k l k t a"))); writer.addDocument(doc); IndexReader reader = writer.getReader(); - IndexSearcher is = newSearcher(getOnlyLeafReader(reader)); + IndexSearcher is = newSearcher(getOnlyLeafReader(reader), false); writer.close(); SpanTermQuery stq1 = new SpanTermQuery(new Term("content", "a")); @@ -438,7 +438,7 @@ public class TestPayloadSpans extends LuceneTestCase { closeIndexReader = writer.getReader(); writer.close(); - IndexSearcher searcher = newSearcher(closeIndexReader); + IndexSearcher searcher = newSearcher(closeIndexReader, false); return searcher; }