Skip to content

Commit e1acdbe

Browse files
Working commit
1 parent 65c350c commit e1acdbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

+3
Original file line numberDiff line numberDiff line change
@@ -1462,6 +1462,9 @@ public IndexOptions parseIndexOptions(String fieldName, Map<String, ?> indexOpti
14621462
RescoreVector rescoreVector = null;
14631463
if (indexVersion.onOrAfter(ADD_RESCORE_PARAMS_TO_QUANTIZED_VECTORS)) {
14641464
rescoreVector = RescoreVector.fromIndexOptions(indexOptionsMap, indexVersion);
1465+
if (rescoreVector == null) {
1466+
rescoreVector = new RescoreVector(3.0f);
1467+
}
14651468
}
14661469
MappingParser.checkNoRemainingFields(fieldName, indexOptionsMap);
14671470
return new BBQHnswIndexOptions(m, efConstruction, rescoreVector);

0 commit comments

Comments
 (0)