lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r1066727 - /lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java
Date Thu, 03 Feb 2011 03:11:12 GMT
Author: rmuir
Date: Thu Feb  3 03:11:12 2011
New Revision: 1066727

URL: http://svn.apache.org/viewvc?rev=1066727&view=rev
Log:
fix false fail, test relies upon docid order

Modified:
    lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java

Modified: lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java?rev=1066727&r1=1066726&r2=1066727&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java (original)
+++ lucene/dev/trunk/lucene/src/test/org/apache/lucene/search/TestWildcard.java Thu Feb  3
03:11:12 2011
@@ -298,7 +298,9 @@ public class TestWildcard
 
     // prepare the index
     Directory dir = newDirectory();
-    RandomIndexWriter iw = new RandomIndexWriter(random, dir);
+    RandomIndexWriter iw = new RandomIndexWriter(random, dir, 
+        newIndexWriterConfig(TEST_VERSION_CURRENT, new MockAnalyzer())
+        .setMergePolicy(newInOrderLogMergePolicy()));
     for (int i = 0; i < docs.length; i++) {
       Document doc = new Document();
       doc.add(newField(field,docs[i],Store.NO,Index.ANALYZED));



Mime
View raw message