Skip to content

Commit 6b00373

Browse files
committed
Fix rebasing
1 parent 4890cd9 commit 6b00373

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

server/src/main/java/org/elasticsearch/index/mapper/vectors/DenseVectorFieldMapper.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2018,16 +2018,6 @@ public Query createKnnQuery(
20182018
"to perform knn search on field [" + name() + "], its mapping must have [index] set to [true]"
20192019
);
20202020
}
2021-
if (rescoreOversample != null && indexOptions.type.isQuantized() == false) {
2022-
throw new IllegalArgumentException(
2023-
"cannot use rescore oversample on field ["
2024-
+ name()
2025-
+ "], that uses non-quantized type ["
2026-
+ indexOptions.type
2027-
+ "]. "
2028-
+ "Only quantized index option types support rescore oversample."
2029-
);
2030-
}
20312021
return switch (getElementType()) {
20322022
case BYTE -> createKnnByteQuery(queryVector.asByteVector(), k, numCands, filter, similarityThreshold, parentFilter);
20332023
case FLOAT -> createKnnFloatQuery(

0 commit comments

Comments
 (0)