# Can \_type be doc\_values?

**URL:** <https://discuss.elastic.co/t/can--type-be-doc-values/26385>\
**Category:** Elasticsearch\
**Created:** [July 28, 2015, 5:51am UTC](https://discuss.elastic.co/t/can--type-be-doc-values/26385 "2015-07-28T05:51:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![chenryn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chenryn/32/44917_2.png) [@chenryn](https://discuss.elastic.co/u/chenryn)\
**Post date:** [July 28, 2015, 5:51am UTC](https://discuss.elastic.co/t/can--type-be-doc-values/26385/1 "2015-07-28T05:51:04Z")

</div>

I use term agg for compute topN of `_type`. Then I find that `_type` using fielddata memory, 500MB per node. I try to define `"_type": { "doc_values": true }` in template.json, even the POST return acknowledeged true, I didn't find such string in \_template API result.

So, can `_type` field be doc\_values?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 28, 2015, 6:03am UTC](https://discuss.elastic.co/t/can--type-be-doc-values/26385/2 "2015-07-28T06:03:40Z")

</div>

You can currently, but from ES 2.0 you won't be able to - [https://www.elastic.co/blog/great-mapping-refactoring#meta-fields](https://www.elastic.co/blog/great-mapping-refactoring#meta-fields)

---

<div class="post-metadata">

**Author:** ![chenryn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chenryn/32/44917_2.png) [@chenryn](https://discuss.elastic.co/u/chenryn)\
**Post date:** [July 28, 2015, 6:20am UTC](https://discuss.elastic.co/t/can--type-be-doc-values/26385/3 "2015-07-28T06:20:11Z")

</div>

But howto check the effect? I GET the new index mapping, but can't find anything abount `_type`.

---

<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:** [July 5, 2017, 11:58pm UTC](https://discuss.elastic.co/t/can--type-be-doc-values/26385/4 "2017-07-05T23:58:43Z")

</div>


