From 752fcf0b83f3d33b8b981971f44510ef53171a52 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Mon, 4 Dec 2023 09:57:19 +0100 Subject: [PATCH] Some cleanup --- .../elasticsearch/cluster/metadata/IndexMetadata.java | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java b/server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java index c163899bbdb0b..7c1a3192d905c 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetadata.java @@ -1739,7 +1739,7 @@ public static IndexMetadata readFrom(StreamInput in, @Nullable Function i.readCollectionAsImmutableSet(StreamInput::readString)) ); } @@ -2108,11 +2108,6 @@ public Builder shardSizeInBytesForecast(Long shardSizeInBytesForecast) { return this; } - public Builder inferenceModelsForfields(Map> inferenceModelsForfields) { - this.inferenceModelsForFields = inferenceModelsForfields; - return this; - } - public Builder inferenceModelsForFields(Map> inferenceModelsForFields) { this.inferenceModelsForFields = inferenceModelsForFields; return this; @@ -2531,7 +2526,7 @@ public static IndexMetadata fromXContent(XContentParser parser, Map e.getValue().stream().map(Object::toString).collect(Collectors.toSet()) ) ); - builder.inferenceModelsForfields(inferenceModels); + builder.inferenceModelsForFields(inferenceModels); break; default: // assume it's custom index metadata