From ca8b628eeb8a315be3f21330d0ed0d6490b36a2e Mon Sep 17 00:00:00 2001 From: markharwood Date: Fri, 1 Feb 2019 15:00:34 +0000 Subject: [PATCH] Changed commit message to the same wording as RestCreateIndexAction --- .../action/admin/indices/RestPutIndexTemplateAction.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestPutIndexTemplateAction.java b/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestPutIndexTemplateAction.java index fd5b2d3e093d5..b1dd13324c85c 100644 --- a/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestPutIndexTemplateAction.java +++ b/server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestPutIndexTemplateAction.java @@ -42,10 +42,9 @@ public class RestPutIndexTemplateAction extends BaseRestHandler { private static final DeprecationLogger DEPRECATION_LOGGER = new DeprecationLogger( LogManager.getLogger(RestPutIndexTemplateAction.class)); - public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in put index " + - "template requests is deprecated. Any doc types should be removed from the `mapping` section" - + " and the parameter include_type_name should be provided and set to false to be " + - "compatible with the next major version."; + public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in put index template " + + "requests is deprecated. To be compatible with 7.0, the mapping definition should not be nested under " + + "the type name, and the parameter include_type_name must be provided and set to false."; public RestPutIndexTemplateAction(Settings settings, RestController controller) { super(settings);