mirror of
https://github.com/apache/lucene.git
synced 2025-02-09 11:35:14 +00:00
parent
1a5ad61b9d
commit
48aad5090f
@ -1087,7 +1087,7 @@ public abstract class BaseKnnVectorsFormatTestCase extends BaseIndexFileFormatTe
|
|||||||
// assert that searchNearestVectors returns the expected number of documents,
|
// assert that searchNearestVectors returns the expected number of documents,
|
||||||
// in descending score order
|
// in descending score order
|
||||||
int size = ctx.reader().getVectorValues(fieldName).size();
|
int size = ctx.reader().getVectorValues(fieldName).size();
|
||||||
int k = random().nextInt(size / 2 + 1) + 1;
|
int k = random().nextInt(size / 10 + 1) + 1;
|
||||||
if (k > numLiveDocsWithVectors) {
|
if (k > numLiveDocsWithVectors) {
|
||||||
k = numLiveDocsWithVectors;
|
k = numLiveDocsWithVectors;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user