From c252b92caa2f32ca96c3381fd8af2601be42036f Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Tue, 28 May 2019 09:53:58 +0200 Subject: [PATCH] LUCENE-8135: Fix number of clauses randomization. --- .../core/src/test/org/apache/lucene/search/TestWANDScorer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java b/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java index 2a48cb3b1e6..40caaecf0fc 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestWANDScorer.java @@ -225,7 +225,7 @@ public class TestWANDScorer extends LuceneTestCase { for (int iter = 0; iter < 100; ++iter) { int start = random().nextInt(10); - int numClauses = 2;//random().nextInt(1 << random().nextInt(5)); + int numClauses = random().nextInt(1 << random().nextInt(5)); BooleanQuery.Builder builder = new BooleanQuery.Builder(); for (int i = 0; i < numClauses; ++i) { builder.add(maybeWrap(new TermQuery(new Term("foo", Integer.toString(start + i)))), Occur.SHOULD);