# Docs still refer to index types

**URL:** https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337
**Category:** Elasticsearch
**Created:** [March 9, 2018, 8:03pm UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337 "2018-03-09T20:03:08Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)
#### Post date: [March 9, 2018, 8:03pm UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337/1 "2018-03-09T20:03:08Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html)

This has the index type in the mapping block. Isn't this obsolete now that ES removes index types? How do we do it now that there are no types?

---

<div class="post-metadata">

### Author: ![shanec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanec/32/4004_2.png) [@shanec](https://discuss.elastic.co/u/shanec)
#### Post date: [March 9, 2018, 9:57pm UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337/2 "2018-03-09T21:57:41Z")

</div>

> [@arisbanach](#):
>
> [Index templates | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html)

Even in Elasticsearch 6, there are types. It's just that it's bound to 1 type per index. See [Removal of mapping types | Elasticsearch Guide [8.11] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html) or [Removal of mapping types in Elasticsearch 6.0 | Elastic Blog](https://www.elastic.co/blog/removal-of-mapping-types-elasticsearch) for more about the current plan for type removal

---

<div class="post-metadata">

### Author: ![arisbanach](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@arisbanach](https://discuss.elastic.co/u/arisbanach)
#### Post date: [March 9, 2018, 10:59pm UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337/3 "2018-03-09T22:59:59Z")

</div>

So is `doc` just the conventional name given to a generic type? Anywhere I see `doc` it is referring to the index type and would he replaced with `tweet` if that were the type instead?

---

<div class="post-metadata">

### Author: ![shanec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanec/32/4004_2.png) [@shanec](https://discuss.elastic.co/u/shanec)
#### Post date: [March 10, 2018, 12:03am UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337/4 "2018-03-10T00:03:39Z")

</div>

There is no single / conventional name in our docs given to types. `doc` is used a few places, but the documentation page you linked uses `type1` as the type as a counterexample. `tweet` is used elsewhere in the docs as a type in some examples (e.g. [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-terms-query.html)). I don't think it's safe to assume that _anywhere_ you see `doc` it's a type, but it's likely the case in many places.

Also, FYI, since you asked "isn't this documentation obsolete" it's worth mentioning that any of the documentation which has these "copy as curl" / "view in console" links on it is actually tested to make sure it's accurate when we build Elasticsearch to ensure there we don't have drift / obsolete documentation.

---

<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: [April 7, 2018, 12:03am UTC](https://discuss.elastic.co/t/docs-still-refer-to-index-types/123337/5 "2018-04-07T00:03:47Z")

</div>

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