# How to move away from default document type mapping "doc"

**URL:** <https://discuss.elastic.co/t/how-to-move-away-from-default-document-type-mapping-doc/157095>\
**Category:** Elasticsearch\
**Created:** [November 16, 2018, 3:19pm UTC](https://discuss.elastic.co/t/how-to-move-away-from-default-document-type-mapping-doc/157095 "2018-11-16T15:19:16Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [December 3, 2018, 10:16pm UTC](https://discuss.elastic.co/t/how-to-move-away-from-default-document-type-mapping-doc/157095/4 "2018-12-03T22:16:55Z")

</div>

The removal of multiple mapping types is a [long and drawn out process](https://www.elastic.co/guide/en/elasticsearch/reference/master/removal-of-types.html#_schedule_for_removal_of_mapping_types) that will take all the way until version 9 to complete. It is happening in so many steps to avoid any one step causing too much heartache during the upgrade. To clarify, _mappings_ are not being removed: it's vital that each index has a mapping. Support for multiple mapping types within a single index (in new indices) was removed in 6.x, and most of the remaining steps in the process are to do with removing the now-unnecessary type name in all the APIs etc. in which it appears.

In 6.4.2 the main thing to do is to prefer to use `_doc` as the type name instead of `doc`; in 7.0 `_doc` will effectively be the only permitted type name, and it will start to become optional.

> [@mattsdevop](#):
>
> I'd like to get ahead of this change so that it's not something I'm fighting when it's time to update. And, hopefully have a better understanding of what I have here, and the pieces of it that I'm not completely familiar with.

The precise details of the changes in 7.0 are still being discussed, but one of the goals is to avoid doing anything that requires applications to be changed simultaneously with the Elasticsearch upgrade. The changes needed will be communicated using things like the deprecation log to catch any places that applications are using Elasticsearch 6.x in ways that won't work in 7.x.

---

_[View the full topic](https://discuss.elastic.co/t/how-to-move-away-from-default-document-type-mapping-doc/157095)._
