From dee8b5e40a3d37da180630c1b2839c1836f97c4d Mon Sep 17 00:00:00 2001 From: Mike McCandless Date: Wed, 9 Mar 2016 14:10:10 -0500 Subject: [PATCH] don't use slow composite wrapper in these tests --- .../lucene/search/join/TestBlockJoin.java | 18 +++++++++--------- .../lucene/queryparser/xml/TestCoreParser.java | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java index 9c39299c4b4..01a81351511 100644 --- a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java +++ b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoin.java @@ -176,7 +176,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Create a filter that defines "parent" documents in the index - in this case resumes BitSetProducer parentsFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -263,7 +263,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Hacky: this causes the query to need 2 rewrite // iterations: @@ -336,7 +336,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Create a filter that defines "parent" documents in the index - in this case resumes BitSetProducer parentsFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -640,7 +640,7 @@ public class TestBlockJoin extends LuceneTestCase { } } - final IndexSearcher s = newSearcher(r); + final IndexSearcher s = newSearcher(r, false); final IndexSearcher joinS = new IndexSearcher(joinR); @@ -1051,7 +1051,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Create a filter that defines "parent" documents in the index - in this case resumes BitSetProducer parentsFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -1575,7 +1575,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Create a filter that defines "parent" documents in the index - in this case resumes BitSetProducer parentsFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -1613,7 +1613,7 @@ public class TestBlockJoin extends LuceneTestCase { IndexReader r = w.getReader(); w.close(); - IndexSearcher s = newSearcher(r); + IndexSearcher s = newSearcher(r, false); // Create a filter that defines "parent" documents in the index - in this case resumes BitSetProducer parentsFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -1644,7 +1644,7 @@ public class TestBlockJoin extends LuceneTestCase { w.forceMerge(1); final IndexReader r = w.getReader(); - final IndexSearcher s = newSearcher(r); + final IndexSearcher s = newSearcher(r, false); w.close(); BitSetProducer parentFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); @@ -1690,7 +1690,7 @@ public class TestBlockJoin extends LuceneTestCase { } final IndexReader r = w.getReader(); - final IndexSearcher s = newSearcher(r); + final IndexSearcher s = newSearcher(r, false); w.close(); BitSetProducer resumeFilter = new QueryBitSetProducer(new TermQuery(new Term("docType", "resume"))); diff --git a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java index 5cadec21f3f..c8b357ed30e 100644 --- a/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java +++ b/lucene/queryparser/src/test/org/apache/lucene/queryparser/xml/TestCoreParser.java @@ -80,7 +80,7 @@ public class TestCoreParser extends LuceneTestCase { d.close(); writer.close(); reader = DirectoryReader.open(dir); - searcher = newSearcher(reader); + searcher = newSearcher(reader, false); }