From a254b2da2919ba5e82f19bc890eb7e32c39cb037 Mon Sep 17 00:00:00 2001 From: Clinton Gormley Date: Wed, 26 Aug 2015 15:32:44 +0200 Subject: [PATCH] REST spec: Added update_all_types to indices.put_mapping and indices.create Closes #12840 --- .../src/main/resources/rest-api-spec/api/indices.create.json | 4 ++++ .../main/resources/rest-api-spec/api/indices.put_mapping.json | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json index a738fa848ccb8..bdac6d9a9ab89 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.create.json @@ -20,6 +20,10 @@ "master_timeout": { "type" : "time", "description" : "Specify timeout for connection to master" + }, + "update_all_types": { + "type": "boolean", + "description": "Whether to update the mapping for all fields with the same name across all types or not" } } }, diff --git a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json index c6b547914ef79..5fce0bcefc89a 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json +++ b/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_mapping.json @@ -38,6 +38,10 @@ "options" : ["open","closed","none","all"], "default" : "open", "description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both." + }, + "update_all_types": { + "type": "boolean", + "description": "Whether to update the mapping for all fields with the same name across all types or not" } } },