# Question about Elasticsearch mapping doc\_values option

**URL:** <https://discuss.elastic.co/t/question-about-elasticsearch-mapping-doc-values-option/50017>\
**Category:** Elasticsearch\
**Created:** [May 13, 2016, 6:00pm UTC](https://discuss.elastic.co/t/question-about-elasticsearch-mapping-doc-values-option/50017 "2016-05-13T18:00:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yichi\_Zhang](https://avatars.discourse-cdn.com/v4/letter/y/a87d85/32.png) [@Yichi\_Zhang](https://discuss.elastic.co/u/Yichi_Zhang)\
**Post date:** [May 13, 2016, 6:00pm UTC](https://discuss.elastic.co/t/question-about-elasticsearch-mapping-doc-values-option/50017/1 "2016-05-13T18:00:21Z")

</div>

Noticed this option in 2.1 document and it is saying doc\_values supposed to be more efficient for sorting and aggregating. However we are running 1.7 in production and wanna check if such mapping is available in ES 1.7 and how the efficiency is compared with fielddata.

---

<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:** [May 14, 2016, 2:34am UTC](https://discuss.elastic.co/t/question-about-elasticsearch-mapping-doc-values-option/50017/2 "2016-05-14T02:34:29Z")

</div>

For the most part, doc\_values is available in 1.7 as well. (There are a few exceptions like `_type` didn't use doc\_values until 2.1, for example, but most of it's there in 1.7).

Chris wrote a really great blog at [https://www.elastic.co/blog/support-in-the-wild-my-biggest-elasticsearch-problem-at-scale](https://www.elastic.co/blog/support-in-the-wild-my-biggest-elasticsearch-problem-at-scale) comparing doc\_values vs fielddata and why we really think doc\_values is the best way forward. It does mean you should make sure you leave enough RAM for your OS's filesystem cache, since your OS should cache the doc\_values in memory.

---

<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, 10:51pm UTC](https://discuss.elastic.co/t/question-about-elasticsearch-mapping-doc-values-option/50017/3 "2017-07-05T22:51:28Z")

</div>


