Fixup TestCombinedFieldQuery to not (randomy) use numHits = 0

This commit is contained in:
Greg Miller 2021-11-21 07:37:46 -08:00
parent 5993b9050a
commit 9d7e5ef388
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
*/
package org.apache.lucene.sandbox.search;
import static com.carrotsearch.randomizedtesting.RandomizedTest.atMost;
import static com.carrotsearch.randomizedtesting.RandomizedTest.randomBoolean;
import static com.carrotsearch.randomizedtesting.RandomizedTest.randomIntBetween;
@ -171,7 +170,7 @@ public class TestCombinedFieldQuery extends LuceneTestCase {
public void testScoringWithMultipleFieldTermsMatch() throws IOException {
int numMatchDoc = randomIntBetween(100, 500);
int numHits = atMost(100);
int numHits = randomIntBetween(1, 100);
int boost1 = Math.max(1, random().nextInt(5));
int boost2 = Math.max(1, random().nextInt(5));