# Ints converted to double in terms aggregation in version 2.4.1?

**URL:** <https://discuss.elastic.co/t/ints-converted-to-double-in-terms-aggregation-in-version-2-4-1/74648>\
**Category:** Elasticsearch\
**Created:** [February 10, 2017, 12:09pm UTC](https://discuss.elastic.co/t/ints-converted-to-double-in-terms-aggregation-in-version-2-4-1/74648 "2017-02-10T12:09:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomibollen](https://avatars.discourse-cdn.com/v4/letter/t/d78d45/32.png) [@tomibollen](https://discuss.elastic.co/u/tomibollen)\
**Post date:** [February 10, 2017, 12:09pm UTC](https://discuss.elastic.co/t/ints-converted-to-double-in-terms-aggregation-in-version-2-4-1/74648/1 "2017-02-10T12:09:57Z")

</div>

We've just upgraded to 2.4.1 from 2.3.3, and all of a sudden it seems like if you have an int as a key in a KeyedBucket it gets converted to a double before it gets converted to a string. We are aggregating on Count by ContentTypeId, and the ContentTypeId is always an int. So in version 2.3.3 if we had a ContentTypeId 12 it got stored in the KeyedBucket as "12", but in version 2.4.1 it gets stored as "12.0". How come this is happening?

---

<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:** [March 10, 2017, 12:10pm UTC](https://discuss.elastic.co/t/ints-converted-to-double-in-terms-aggregation-in-version-2-4-1/74648/2 "2017-03-10T12:10:03Z")

</div>

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