@@ -2431,7 +2431,7 @@ private Query createKnnBitQuery(
24312431 : new ESKnnByteVectorQuery (name (), queryVector , k , numCands , filter , searchStrategy );
24322432 // TODO : fix reading of saturation threshold and patience params ?
24332433 Query knnQuery = indexOptions != null && indexOptions .earlyExit ()
2434- ? PatienceKnnVectorQuery .fromByteQuery (knnByteVectorQuery , 0.95 , (int ) (k * 0.3 ))
2434+ ? PatienceKnnVectorQuery .fromByteQuery (knnByteVectorQuery , 0.95 , (int ) (k * 0.3 ))
24352435 : knnByteVectorQuery ;
24362436 if (similarityThreshold != null ) {
24372437 knnQuery = new VectorSimilarityQuery (
@@ -2463,7 +2463,7 @@ private Query createKnnByteQuery(
24632463 : new ESKnnByteVectorQuery (name (), queryVector , k , numCands , filter , searchStrategy );
24642464 // TODO: fix reading of saturation threshold and patience params ?
24652465 Query knnQuery = indexOptions != null && indexOptions .earlyExit ()
2466- ? PatienceKnnVectorQuery .fromByteQuery (knnByteVectorQuery , 0.95 , (int ) (k * 0.3 ))
2466+ ? PatienceKnnVectorQuery .fromByteQuery (knnByteVectorQuery , 0.95 , (int ) (k * 0.3 ))
24672467 : knnByteVectorQuery ;
24682468
24692469 if (similarityThreshold != null ) {
@@ -2530,7 +2530,7 @@ && isNotUnitVector(squaredMagnitude)) {
25302530 : new ESKnnFloatVectorQuery (name (), queryVector , adjustedK , numCands , filter , knnSearchStrategy );
25312531 // TODO: fix reading of saturation threshold and patience params ?
25322532 Query knnQuery = indexOptions != null && indexOptions .earlyExit ()
2533- ? PatienceKnnVectorQuery .fromFloatQuery (knnFloatVectorQuery , 0.95 , (int ) (k * 0.3 ))
2533+ ? PatienceKnnVectorQuery .fromFloatQuery (knnFloatVectorQuery , 0.95 , (int ) (k * 0.3 ))
25342534 : knnFloatVectorQuery ;
25352535
25362536 if (rescore ) {
0 commit comments