# readFromDocValues attribute from Kibana saved objects API

**URL:** https://discuss.elastic.co/t/readfromdocvalues-attribute-from-kibana-saved-objects-api/199118
**Category:** Kibana
**Created:** [September 11, 2019, 6:30pm UTC](https://discuss.elastic.co/t/readfromdocvalues-attribute-from-kibana-saved-objects-api/199118 "2019-09-11T18:30:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Ailurus](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ailurus/32/17368_2.png) [@Ailurus](https://discuss.elastic.co/u/Ailurus)
#### Post date: [September 11, 2019, 6:30pm UTC](https://discuss.elastic.co/t/readfromdocvalues-attribute-from-kibana-saved-objects-api/199118/1 "2019-09-11T18:30:17Z")

</div>

Hello,

I recently upgraded my ELK stack from 5.6 to 6.8.  
I noticed there is now a Kibana REST API to perform CRUD operations on saved objects such as index pattern.

After using it to retrieve some index pattern I saw that there is sometimes, in the API response, a "readFromDocValues" attribute on some fields of the index pattern.

I browsed on the Kibana doc and there is no mention of "readFromDocValues". Depending on the data in my Elasticsearch node, i have sometimes this attribute in API reponse and sometimes not.

Can you provide some insights about this attribute ? Is it a Kibana metadata ? What is its purpose ?

Thanks.

Best regards.

---

<div class="post-metadata">

### Author: ![lukas](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukas/32/6812_2.png) [@lukas](https://discuss.elastic.co/u/lukas)
#### Post date: [September 12, 2019, 4:46pm UTC](https://discuss.elastic.co/t/readfromdocvalues-attribute-from-kibana-saved-objects-api/199118/2 "2019-09-12T16:46:50Z")

</div>

Yes, it's Kibana metadata, and it's related to [Elasticsearch doc values](https://www.elastic.co/guide/en/elasticsearch/reference/7.3/search-request-body.html#request-body-search-docvalue-fields).

Basically, things like date fields are read from doc values instead of queried directly from `_source`, so we can format the value in the correct timezone.

---

<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: [October 10, 2019, 4:46pm UTC](https://discuss.elastic.co/t/readfromdocvalues-attribute-from-kibana-saved-objects-api/199118/3 "2019-10-10T16:46:57Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
