LUCENE-10382: Fix testSearchWithVisitedLimit failures

This commit is contained in:
Julie Tibshirani 2022-02-23 19:54:59 -08:00
parent 7ec89603e3
commit d9c2e46824
1 changed files with 2 additions and 2 deletions

View File

@ -833,8 +833,8 @@ public abstract class BaseKnnVectorsFormatTestCase extends BaseIndexFileFormatTe
String fieldName = "field";
try (Directory dir = newDirectory();
IndexWriter iw = new IndexWriter(dir, iwc)) {
int numDoc = atLeast(300);
int dimension = atLeast(10);
int numDoc = 300;
int dimension = 10;
for (int i = 0; i < numDoc; i++) {
float[] value;
if (random().nextInt(7) != 3) {