# How to index types correctly to be prepared for the future updates

**URL:** <https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740>\
**Category:** Elasticsearch\
**Created:** [September 24, 2018, 9:51pm UTC](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740 "2018-09-24T21:51:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![clickstream](https://avatars.discourse-cdn.com/v4/letter/c/2acd7d/32.png) [@clickstream](https://discuss.elastic.co/u/clickstream)\
**Post date:** [September 24, 2018, 9:51pm UTC](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740/1 "2018-09-24T21:51:31Z")

</div>

Hey guys I am learning Elasticsearch and some old tutorials suggest I should use types, I see that multiple types are not allowed anymore and found this announcement here:

### Multiple mapping types are not supported in indices created in 6.0

The ability to have multiple mapping types per index has been removed in 6.0. New indices will be restricted to a single type. This is the first step in the plan to remove mapping types altogether. Indices created in 5.x will continue to support multiple mapping types.

My question is:

Is it better to not to use types at all?  
How can i not use a type if i want to add an index key in the end  
As i understand the structure is still following: PUT index\_name/type/ID

Looking forward to your thoughts on best practices when designing my database.

Thanks!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 25, 2018, 2:01am UTC](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740/2 "2018-09-25T02:01:01Z")

</div>

Best thing to do is to use `_doc` as the type name for now. That will prepare you for the future.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 23, 2018, 2:01am UTC](https://discuss.elastic.co/t/how-to-index-types-correctly-to-be-prepared-for-the-future-updates/149740/3 "2018-10-23T02:01:04Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
