From 12b290200126d0b65d07c4705414ddb9bffbe4c7 Mon Sep 17 00:00:00 2001 From: carlosdelest Date: Wed, 13 Mar 2024 18:28:35 +0100 Subject: [PATCH] Renaming fields --- .../cluster/metadata/FieldInferenceMetadata.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/cluster/metadata/FieldInferenceMetadata.java b/server/src/main/java/org/elasticsearch/cluster/metadata/FieldInferenceMetadata.java index f3043da3e1c7f..5be3c33fca4e4 100644 --- a/server/src/main/java/org/elasticsearch/cluster/metadata/FieldInferenceMetadata.java +++ b/server/src/main/java/org/elasticsearch/cluster/metadata/FieldInferenceMetadata.java @@ -48,7 +48,7 @@ public class FieldInferenceMetadata implements Diffable, public static final FieldInferenceMetadata EMPTY = new FieldInferenceMetadata(ImmutableOpenMap.of(), ImmutableOpenMap.of()); public static final ParseField INFERENCE_FOR_FIELDS_FIELD = new ParseField("inference_for_fields"); - public static final ParseField COPY_FROM_FIELDS_FIELD = new ParseField("copy_from_fields"); + public static final ParseField SOURCE_FIELDS_FIELD = new ParseField("source_fields"); public FieldInferenceMetadata( ImmutableOpenMap inferenceIdsForFields, @@ -87,7 +87,7 @@ public void writeTo(StreamOutput out) throws IOException { @Override public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException { builder.field(INFERENCE_FOR_FIELDS_FIELD.getPreferredName(), inferenceIdForField); - builder.field(COPY_FROM_FIELDS_FIELD.getPreferredName(), sourceFields); + builder.field(SOURCE_FIELDS_FIELD.getPreferredName(), sourceFields); return builder; } @@ -107,7 +107,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws HashMap::new, v -> v.list().stream().map(Object::toString).collect(Collectors.toSet()) ), - COPY_FROM_FIELDS_FIELD + SOURCE_FIELDS_FIELD ); }