lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From romseyg...@apache.org
Subject lucene-solr:master: LUCENE-7236: Fix test bug
Date Wed, 01 Jun 2016 19:15:29 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 7b5d82607 -> 7de3ef351


LUCENE-7236: Fix test bug


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/7de3ef35
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/7de3ef35
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/7de3ef35

Branch: refs/heads/master
Commit: 7de3ef35100bd0db5454272d4812e014e35d2386
Parents: 7b5d826
Author: Alan Woodward <romseygeek@apache.org>
Authored: Wed Jun 1 20:14:54 2016 +0100
Committer: Alan Woodward <romseygeek@apache.org>
Committed: Wed Jun 1 20:15:02 2016 +0100

----------------------------------------------------------------------
 .../apache/lucene/search/spans/TestSpanCollection.java   | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7de3ef35/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanCollection.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanCollection.java b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanCollection.java
index 7b90b2b..8e45482 100644
--- a/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanCollection.java
+++ b/lucene/core/src/test/org/apache/lucene/search/spans/TestSpanCollection.java
@@ -17,13 +17,16 @@
 package org.apache.lucene.search.spans;
 
 
+import java.io.IOException;
+import java.util.HashSet;
+import java.util.Set;
+
 import org.apache.lucene.analysis.MockAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.FieldType;
 import org.apache.lucene.document.TextField;
 import org.apache.lucene.index.IndexOptions;
 import org.apache.lucene.index.IndexReader;
-import org.apache.lucene.index.NoMergePolicy;
 import org.apache.lucene.index.PostingsEnum;
 import org.apache.lucene.index.RandomIndexWriter;
 import org.apache.lucene.index.Term;
@@ -32,10 +35,6 @@ import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
 import org.junit.Test;
 
-import java.io.IOException;
-import java.util.HashSet;
-import java.util.Set;
-
 public class TestSpanCollection extends LuceneTestCase {
 
   protected IndexSearcher searcher;
@@ -61,7 +60,7 @@ public class TestSpanCollection extends LuceneTestCase {
     super.setUp();
     directory = newDirectory();
     RandomIndexWriter writer = new RandomIndexWriter(random(), directory,
-        newIndexWriterConfig(new MockAnalyzer(random())));
+        newIndexWriterConfig(new MockAnalyzer(random())).setMergePolicy(newLogMergePolicy()));
     for (int i = 0; i < docFields.length; i++) {
       Document doc = new Document();
       doc.add(newField(FIELD, docFields[i], OFFSETS));


Mime
View raw message