# Fields with doc\_values=true populate fielddata cache

**URL:** https://discuss.elastic.co/t/fields-with-doc-values-true-populate-fielddata-cache/28932
**Category:** Elasticsearch
**Created:** [September 9, 2015, 1:31pm UTC](https://discuss.elastic.co/t/fields-with-doc-values-true-populate-fielddata-cache/28932 "2015-09-09T13:31:00Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Alexander\_Koval](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_koval/32/1079_2.png) [@Alexander\_Koval](https://discuss.elastic.co/u/Alexander_Koval)
#### Post date: [September 9, 2015, 1:31pm UTC](https://discuss.elastic.co/t/fields-with-doc-values-true-populate-fielddata-cache/28932/1 "2015-09-09T13:31:00Z")

</div>

I have an index with single mapping and almost all fields with doc\_values=true. Fisrt time after adding doc\_values filddata contains only boolean fields. But now stats shows that all those fields present in fielddata cache. Not only string and boolean fields but numeric too.

And I have the frustration of how this could happen.

Elasticsearch version: 1.7.1

[mapping.json](https://gist.github.com/anti-social/28c9a25b1e8681ae9481)  
[stats.json](https://gist.github.com/anti-social/e4d547483e1c51e20449)

---

<div class="post-metadata">

### Author: ![Alexander\_Koval](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexander_koval/32/1079_2.png) [@Alexander\_Koval](https://discuss.elastic.co/u/Alexander_Koval)
#### Post date: [September 9, 2015, 2:08pm UTC](https://discuss.elastic.co/t/fields-with-doc-values-true-populate-fielddata-cache/28932/2 "2015-09-09T14:08:22Z")

</div>

I'm sorry, system administrator gave me mapping from another cluster. So all is ok.

---

<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:51pm UTC](https://discuss.elastic.co/t/fields-with-doc-values-true-populate-fielddata-cache/28932/3 "2017-07-05T23:51:32Z")

</div>


