added random disableCoord to random boolean query

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@332344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2005-11-10 18:14:10 +00:00
parent 3dbba4dabe
commit e9d4568cf5
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ public class TestBoolean2 extends TestCase {
// 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) {