Skip to content

Commit 74c82ec

Browse files
authored
Update the deprecation message for typed put mapping requests. (#37835)
The message was originally intended for 7.0, and needs to be updated to make sense for 6.7.
1 parent 40d0c17 commit 74c82ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/rest/action/admin/indices/RestPutMappingAction.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@
4141
public class RestPutMappingAction extends BaseRestHandler {
4242
private static final DeprecationLogger deprecationLogger = new DeprecationLogger(
4343
LogManager.getLogger(RestPutMappingAction.class));
44-
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Using include_type_name in put " +
45-
"mapping requests is deprecated. The parameter will be removed in the next major version.";
44+
public static final String TYPES_DEPRECATION_MESSAGE = "[types removal] Specifying types in put mapping " +
45+
"requests is deprecated. The parameter include_type_name should be provided and set to false to be " +
46+
"compatible with the next major version.";
4647

4748
public RestPutMappingAction(Settings settings, RestController controller) {
4849
super(settings);

0 commit comments

Comments
 (0)