# How to get aggregations on integer\_range type field

**URL:** <https://discuss.elastic.co/t/how-to-get-aggregations-on-integer-range-type-field/160892>\
**Category:** Elasticsearch\
**Created:** [December 14, 2018, 11:31am UTC](https://discuss.elastic.co/t/how-to-get-aggregations-on-integer-range-type-field/160892 "2018-12-14T11:31:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jatinroyy](https://avatars.discourse-cdn.com/v4/letter/j/e480ec/32.png) [@jatinroyy](https://discuss.elastic.co/u/jatinroyy)\
**Post date:** [December 14, 2018, 11:31am UTC](https://discuss.elastic.co/t/how-to-get-aggregations-on-integer-range-type-field/160892/1 "2018-12-14T11:31:12Z")

</div>

Hi

I'd like to know how to get aggregations on integer\_range type field? While creating schema it is giving me error

root\_cause": [  
{  
"type": "mapper\_parsing\_exception",  
"reason": "Mapping definition for [salaryTest2] has unsupported parameters: [fielddata : true]"  
}

schema-  
PUT job\_core3/\_mapping/\_doc  
{  
"properties": {  
"salaryTest2": {  
"type": "integer\_range",  
"fielddata":true  
}  
}  
}

Please let me know how to get aggregations on integer\_range type field or is there any other solution.

Regards  
Jatin Roy

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [December 14, 2018, 1:49pm UTC](https://discuss.elastic.co/t/how-to-get-aggregations-on-integer-range-type-field/160892/2 "2018-12-14T13:49:55Z")

</div>

Currently range fields do not work with aggregations. This issue might be of interest for you to follow development [https://github.com/elastic/elasticsearch/issues/34644](https://github.com/elastic/elasticsearch/issues/34644)

---

<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:** [January 11, 2019, 1:49pm UTC](https://discuss.elastic.co/t/how-to-get-aggregations-on-integer-range-type-field/160892/3 "2019-01-11T13:49:57Z")

</div>

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