mirror of https://github.com/apache/lucene.git
Reduce number of dimensions for Test[Byte|Float]VectorSimilarityQuery (#12988)
### Description
Identified in #12955, where `TestFloatVectorSimilarityQuery.testVectorsAboveSimilarity` fails because of a disconnected HNSW graph
This is a bigger issue, but we can reduce intermittent failures by keeping the number of docs and dimensions same as [`BaseKnnVectorQueryTestCase.testRandom`](dc9f154aa5/lucene/core/src/test/org/apache/lucene/search/BaseKnnVectorQueryTestCase.java (L470)
) (similar test for KNN with random vectors)
### Command to reproduce
```
./gradlew :lucene:core:test --tests "org.apache.lucene.search.TestFloatVectorSimilarityQuery.testVectorsAboveSimilarity" -Ptests.jvms=12 -Ptests.jvmargs= -Ptests.seed=1A1CDC0974AF361
```
This commit is contained in:
parent
78b4f75a2c
commit
248f067d52
|
@ -33,7 +33,7 @@ public class TestByteVectorSimilarityQuery
|
|||
idField = getClass().getSimpleName() + ":IdField";
|
||||
function = VectorSimilarityFunction.EUCLIDEAN;
|
||||
numDocs = atLeast(100);
|
||||
dim = atLeast(50);
|
||||
dim = atLeast(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -33,7 +33,7 @@ public class TestFloatVectorSimilarityQuery
|
|||
idField = getClass().getSimpleName() + ":IdField";
|
||||
function = VectorSimilarityFunction.EUCLIDEAN;
|
||||
numDocs = atLeast(100);
|
||||
dim = atLeast(50);
|
||||
dim = atLeast(5);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue