From 8c6f28451a89fb93bbd3c828e3c41e4f215dd392 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Mon, 14 Feb 2011 14:14:10 +0000 Subject: [PATCH] fix false fail git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1070494 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/lucene/search/TestMultiTermConstantScore.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lucene/src/test/org/apache/lucene/search/TestMultiTermConstantScore.java b/lucene/src/test/org/apache/lucene/search/TestMultiTermConstantScore.java index 5b52755f3fe..dcf14976e6f 100644 --- a/lucene/src/test/org/apache/lucene/search/TestMultiTermConstantScore.java +++ b/lucene/src/test/org/apache/lucene/search/TestMultiTermConstantScore.java @@ -23,6 +23,7 @@ import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.IndexReader.AtomicReaderContext; +import org.apache.lucene.index.IndexWriterConfig; import org.apache.lucene.index.RandomIndexWriter; import org.apache.lucene.index.Term; import org.apache.lucene.store.Directory; @@ -59,7 +60,9 @@ public class TestMultiTermConstantScore extends BaseTestRangeFilter { "X 4 5 6" }; small = newDirectory(); - RandomIndexWriter writer = new RandomIndexWriter(random, small, new MockAnalyzer(MockTokenizer.WHITESPACE, false)); + RandomIndexWriter writer = new RandomIndexWriter(random, small, + newIndexWriterConfig(TEST_VERSION_CURRENT, + new MockAnalyzer(MockTokenizer.WHITESPACE, false)).setMergePolicy(newInOrderLogMergePolicy())); for (int i = 0; i < data.length; i++) { Document doc = new Document();