diff --git a/docs/changelog/111490.yaml b/docs/changelog/111490.yaml deleted file mode 100644 index b67c16189cc62..0000000000000 --- a/docs/changelog/111490.yaml +++ /dev/null @@ -1,5 +0,0 @@ -pr: 111490 -summary: Temporarily return both `modelId` and `inferenceId` for GET /_inference until we migrate clients to only `inferenceId` -area: Machine Learning -type: bug -issues: [] diff --git a/server/src/main/java/org/elasticsearch/inference/ModelConfigurations.java b/server/src/main/java/org/elasticsearch/inference/ModelConfigurations.java index ce83a7c1b6c79..0df0378c4a5f4 100644 --- a/server/src/main/java/org/elasticsearch/inference/ModelConfigurations.java +++ b/server/src/main/java/org/elasticsearch/inference/ModelConfigurations.java @@ -126,7 +126,6 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws if (params.paramAsBoolean(USE_ID_FOR_INDEX, false)) { builder.field(INDEX_ONLY_ID_FIELD_NAME, inferenceEntityId); } else { - builder.field(INDEX_ONLY_ID_FIELD_NAME, inferenceEntityId); builder.field(INFERENCE_ID_FIELD_NAME, inferenceEntityId); } builder.field(TaskType.NAME, taskType.toString()); @@ -143,7 +142,6 @@ public XContentBuilder toFilteredXContent(XContentBuilder builder, Params params if (params.paramAsBoolean(USE_ID_FOR_INDEX, false)) { builder.field(INDEX_ONLY_ID_FIELD_NAME, inferenceEntityId); } else { - builder.field(INDEX_ONLY_ID_FIELD_NAME, inferenceEntityId); builder.field(INFERENCE_ID_FIELD_NAME, inferenceEntityId); } builder.field(TaskType.NAME, taskType.toString());