mirror of https://github.com/apache/lucene.git
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:
parent
3dbba4dabe
commit
e9d4568cf5
|
@ -194,7 +194,7 @@ public class TestBoolean2 extends TestCase {
|
||||||
// Random rnd is passed in so that the exact same random query may be created
|
// Random rnd is passed in so that the exact same random query may be created
|
||||||
// more than once.
|
// more than once.
|
||||||
public static BooleanQuery randBoolQuery(Random rnd, int level, String field, String[] vals, Callback cb) {
|
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++) {
|
for (int i=0; i<rnd.nextInt(vals.length)+1; i++) {
|
||||||
int qType=0; // term query
|
int qType=0; // term query
|
||||||
if (level>0) {
|
if (level>0) {
|
||||||
|
|
Loading…
Reference in New Issue