# How to check the "doc\_value" and "field data" in Kibana

**URL:** <https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956>\
**Category:** Kibana\
**Created:** [June 16, 2016, 7:29am UTC](https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956 "2016-06-16T07:29:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![gayathri](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@gayathri](https://discuss.elastic.co/u/gayathri)\
**Post date:** [June 16, 2016, 7:29am UTC](https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956/1 "2016-06-16T07:29:10Z")

</div>

Hi Team,

I have added below things in mapping:

"doc\_values" : true  
and  
"fielddata": {  
"loading" : "eager\_global\_ordinals"  
}  
inorder to resolve the space issues with the String fields....  
But Iam not getting how to check these got reflected or not....  
How to check the values of these in Kibana?

---

<div class="post-metadata">

**Author:** ![LeeDr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leedr/32/9289_2.png) [@LeeDr](https://discuss.elastic.co/u/LeeDr)\
**Post date:** [June 16, 2016, 4:20pm UTC](https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956/2 "2016-06-16T16:20:13Z")

</div>

Hi Gayathri,

Are you trying to reduce the space string fields use? Adding `"doc_values" : true` (which is the default) increases the required disk space. But it's true by default so that you can sort and aggregation by those fields. To save space, you can set it to false on fields that you don't need to sort or aggregate on.  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/doc-values.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/doc-values.html)

Kibana doesn't know if doc\_values are on. I _think_ if you try to sort or aggregate on a field with `"doc_values" : false` Kibana would show the error that Elasticsearch sends.

As I understand the field data settings, you could disable them to save JVM heap space;  
[https://www.elastic.co/guide/en/elasticsearch/reference/2.3/fielddata.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/fielddata.html)

The loading setting "eager\_global\_ordinals" only controls _when_ the data is loaded.  
But again in this case, I don't think Kibana knows if field data is loaded or not. You might see an error in Kibana if you try to sort or aggregate on values in analyzed strings and you have disabled field data on them.

---

<div class="post-metadata">

**Author:** ![gayathri](https://avatars.discourse-cdn.com/v4/letter/g/838e76/32.png) [@gayathri](https://discuss.elastic.co/u/gayathri)\
**Post date:** [July 4, 2016, 12:29pm UTC](https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956/3 "2016-07-04T12:29:45Z")

</div>

Thank u Lee

---

<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 6, 2017, 1:48pm UTC](https://discuss.elastic.co/t/how-to-check-the-doc-value-and-field-data-in-kibana/52956/4 "2017-07-06T13:48:21Z")

</div>


