@@ -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