Skip to content

Commit c2ef4d2

Browse files
committed
remove unneeded changes
1 parent 0402eef commit c2ef4d2

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

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

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,15 +1340,9 @@ public final String toString() {
13401340

13411341
public abstract static class DenseVectorIndexOptions implements IndexOptions {
13421342
final VectorIndexType type;
1343-
final IndexVersion indexVersion;
13441343

13451344
DenseVectorIndexOptions(VectorIndexType type) {
1346-
this(type, null);
1347-
}
1348-
1349-
DenseVectorIndexOptions(VectorIndexType type, IndexVersion indexVersion) {
13501345
this.type = type;
1351-
this.indexVersion = indexVersion;
13521346
}
13531347

13541348
abstract KnnVectorsFormat getVectorsFormat(ElementType elementType);
@@ -1418,11 +1412,6 @@ abstract static class QuantizedIndexOptions extends DenseVectorIndexOptions {
14181412
super(type);
14191413
this.rescoreVector = rescoreVector;
14201414
}
1421-
1422-
QuantizedIndexOptions(VectorIndexType type, RescoreVector rescoreVector, IndexVersion indexVersion) {
1423-
super(type, indexVersion);
1424-
this.rescoreVector = rescoreVector;
1425-
}
14261415
}
14271416

14281417
public enum VectorIndexType {
@@ -1476,6 +1465,7 @@ public DenseVectorIndexOptions parseIndexOptions(String fieldName, Map<String, ?
14761465
if (hasRescoreIndexVersion(indexVersion)) {
14771466
rescoreVector = RescoreVector.fromIndexOptions(indexOptionsMap, indexVersion);
14781467
}
1468+
MappingParser.checkNoRemainingFields(fieldName, indexOptionsMap);
14791469
return new Int8HnswIndexOptions(m, efConstruction, confidenceInterval, rescoreVector);
14801470
}
14811471

0 commit comments

Comments
 (0)