# Doubts in doc\_values

**URL:** <https://discuss.elastic.co/t/doubts-in-doc-values/61489>\
**Category:** Elasticsearch\
**Created:** [September 26, 2016, 7:52am UTC](https://discuss.elastic.co/t/doubts-in-doc-values/61489 "2016-09-26T07:52:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Selvam\_ayyanar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/selvam_ayyanar/32/11101_2.png) [@Selvam\_ayyanar](https://discuss.elastic.co/u/Selvam_ayyanar)\
**Post date:** [September 26, 2016, 7:52am UTC](https://discuss.elastic.co/t/doubts-in-doc-values/61489/1 "2016-09-26T07:52:35Z")

</div>

Hi All,

I have some doubts in doc\_value.

current version is elasticsearch 1.3.7, we are planned to upgrade our elasticsearch instances.  
Before that we need to clear mapping conflicts, for that we are created new mapping and re indexing data.  
In new mappings we are planned to enable "doc\_values":true in all fields is it OK?

1. doc\_value supports all fields?
2. Any issues with doc\_values?
3. doc\_values using disk while aggregating data, how long it persist on disk? and how to manually remove that data ?

---

<div class="post-metadata">

**Author:** ![dakrone](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dakrone/32/23351_2.png) [@dakrone](https://discuss.elastic.co/u/dakrone)\
**Post date:** [September 26, 2016, 9:50pm UTC](https://discuss.elastic.co/t/doubts-in-doc-values/61489/2 "2016-09-26T21:50:35Z")

</div>

> In new mappings we are planned to enable "doc\_values":true in all fields is it OK?

Generally we recommended that doc\_values are using in Elasticsearch 1.4.0 or later; it would be good if you could upgrade your version! (2.4 is the latest but even 1.7 would be better)

> doc\_value supports all fields?

No, doc\_values only work on non-analyzed strings and numeric data (dates, numbers, geo points)

> Any issues with doc\_values?

Doc values will use more disk, since the data is written at indexing time next to the regular segment files.

> doc\_values using disk while aggregating data, how long it persist on disk?

The doc values themselves are written at indexing time and have the same lifetime as the index

> and how to manually remove that data ?

You generally do not remove doc\_value data, so it's not recommended that you do that

---

<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:17pm UTC](https://discuss.elastic.co/t/doubts-in-doc-values/61489/3 "2017-07-05T22:17:09Z")

</div>


