Skip to content

Commit

Permalink
Fix constructor chain
Browse files Browse the repository at this point in the history
Signed-off-by: John Mazanec <[email protected]>
  • Loading branch information
jmazanec15 committed Oct 4, 2021
1 parent 516c30b commit f76099f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,7 @@ public static class KNNVectorFieldType extends MappedFieldType {
String modelId;

public KNNVectorFieldType(String name, Map<String, String> meta, int dimension) {
super(name, false, false, true, TextSearchInfo.NONE, meta);
this.dimension = dimension;
this.modelId = null; // By default, this is null. It will only be set for a mapping with a modelId set.
this(name, meta, dimension, null);
}

public KNNVectorFieldType(String name, Map<String, String> meta, int dimension, String modelId) {
Expand Down

0 comments on commit f76099f

Please sign in to comment.