From bdd509f21d256708731130fefb4da39123ba624b Mon Sep 17 00:00:00 2001 From: Martijn van Groningen Date: Fri, 26 Apr 2013 13:52:55 +0000 Subject: [PATCH] Fixed test failure git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1476206 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/search/join/TestBlockJoinSorting.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinSorting.java b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinSorting.java index e30c62179dc..80217933580 100644 --- a/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinSorting.java +++ b/lucene/join/src/test/org/apache/lucene/search/join/TestBlockJoinSorting.java @@ -17,10 +17,12 @@ package org.apache.lucene.search.join; * limitations under the License. */ +import org.apache.lucene.analysis.MockAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.StringField; import org.apache.lucene.index.DirectoryReader; +import org.apache.lucene.index.NoMergePolicy; import org.apache.lucene.index.RandomIndexWriter; import org.apache.lucene.index.Term; import org.apache.lucene.search.CachingWrapperFilter; @@ -50,7 +52,8 @@ public class TestBlockJoinSorting extends LuceneTestCase { @Test public void testNestedSorting() throws Exception { final Directory dir = newDirectory(); - final RandomIndexWriter w = new RandomIndexWriter(random(), dir); + final RandomIndexWriter w = new RandomIndexWriter(random(), dir, newIndexWriterConfig(TEST_VERSION_CURRENT, + new MockAnalyzer(random())).setMergePolicy(NoMergePolicy.COMPOUND_FILES)); List docs = new ArrayList<>(); Document document = new Document();