How to get aggregations on integer_range type field

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

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

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