Add parameter "include_type_name":true in index settings block

In ES version 7.9.3, the include_type_name is defaulted to false, need to make it true,

  1. Need to pass include_type_name=true in request URL

Is there is another way without passing in the request url

Hi Tamil,

I do not believe there is on Elasticsearch's side. If you are sending an index creation request, you would need to add the parameter: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/breaking-changes-7.0.html#default-mapping-not-allowed

Version 6.8 was already throwing deprecation warnings if the parameter was not set.

If you have a reverse proxy or similar in front of Elasticsearch, you could attempt to intercept the request there and add the parameter there. If you can't modify the source yet.

Also be aware that the parameter will be removed in version 8: https://www.elastic.co/guide/en/elasticsearch/reference/7.10/removal-of-types.html#_schedule_for_removal_of_mapping_types