lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r332344 - /lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java
Date Thu, 10 Nov 2005 18:14:18 GMT
Author: yonik
Date: Thu Nov 10 10:14:10 2005
New Revision: 332344

URL: http://svn.apache.org/viewcvs?rev=332344&view=rev
Log:
added random disableCoord  to random boolean query

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

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java
URL: http://svn.apache.org/viewcvs/lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java?rev=332344&r1=332343&r2=332344&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestBoolean2.java Thu Nov 10 10:14:10
2005
@@ -194,7 +194,7 @@
   // Random rnd is passed in so that the exact same random query may be created
   // more than once.
   public static BooleanQuery randBoolQuery(Random rnd, int level, String field, String[]
vals, Callback cb) {
-    BooleanQuery current = new BooleanQuery();
+    BooleanQuery current = new BooleanQuery(rnd.nextInt()<0);
     for (int i=0; i<rnd.nextInt(vals.length)+1; i++) {
       int qType=0; // term query
       if (level>0) {



Mime
View raw message