# Aggregations are not working in ES when doc\_values=false

**URL:** <https://discuss.elastic.co/t/aggregations-are-not-working-in-es-when-doc-values-false/182959>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 6:54pm UTC](https://discuss.elastic.co/t/aggregations-are-not-working-in-es-when-doc-values-false/182959 "2019-05-27T18:54:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yamuna\_Mallikarjun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yamuna_mallikarjun/32/46913_2.png) [@Yamuna\_Mallikarjun](https://discuss.elastic.co/u/Yamuna_Mallikarjun)\
**Post date:** [May 27, 2019, 6:54pm UTC](https://discuss.elastic.co/t/aggregations-are-not-working-in-es-when-doc-values-false/182959/1 "2019-05-27T18:54:17Z")

</div>

Hello,

1. Initially we were using ES 2.4.1 and doc\_values=false for long datatype:  
and Aggregations were fine with the below configuration.  
"ts": {  
"norms": {  
"enabled": false  
},  
"index": "not\_analyzed",  
"type": "long",  
"doc\_values":false  
}
2. Upgraded ES version to 6.6.0 and Aggregations are not working with the below configurations :  
"ts": {  
"type": "long",  
"doc\_values":false  
}

When we saw field data says its disabled on text field but not for long. Why aggregations are not working then.

Thanks

---

<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:** [June 24, 2019, 6:54pm UTC](https://discuss.elastic.co/t/aggregations-are-not-working-in-es-when-doc-values-false/182959/2 "2019-06-24T18:54:24Z")

</div>

Closed on June 24, 2019, 6:54pm UTC

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