Skip to content

Commit

Permalink
Some cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Dec 4, 2023
1 parent 1f7a60b commit 752fcf0
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1739,7 +1739,7 @@ public static IndexMetadata readFrom(StreamInput in, @Nullable Function<String,
builder.shardSizeInBytesForecast(in.readOptionalLong());
}
if (in.getTransportVersion().onOrAfter(SEMANTIC_TEXT_FIELD)) {
builder.inferenceModelsForfields(
builder.inferenceModelsForFields(
in.readImmutableMap(StreamInput::readString, i -> i.readCollectionAsImmutableSet(StreamInput::readString))
);
}
Expand Down Expand Up @@ -2108,11 +2108,6 @@ public Builder shardSizeInBytesForecast(Long shardSizeInBytesForecast) {
return this;
}

public Builder inferenceModelsForfields(Map<String, Set<String>> inferenceModelsForfields) {
this.inferenceModelsForFields = inferenceModelsForfields;
return this;
}

public Builder inferenceModelsForFields(Map<String, Set<String>> inferenceModelsForFields) {
this.inferenceModelsForFields = inferenceModelsForFields;
return this;
Expand Down Expand Up @@ -2531,7 +2526,7 @@ public static IndexMetadata fromXContent(XContentParser parser, Map<String, Mapp
e -> e.getValue().stream().map(Object::toString).collect(Collectors.toSet())
)
);
builder.inferenceModelsForfields(inferenceModels);
builder.inferenceModelsForFields(inferenceModels);
break;
default:
// assume it's custom index metadata
Expand Down

0 comments on commit 752fcf0

Please sign in to comment.