Hi, after update to latest ES version, my range aggregation query started to work weird way.
I need histogram with predefine range values. My query looks like:
"aggs" : {
"agg" : {
"range" : {
"field" : field,
"ranges" : [
{ "to" : 2.58 },
{ "from" : 2.58, "to" : 3.1 },
{ "from" : 3.1, "to": 3.6 },
{ "from" : 3.6, "to": 4.03 },
{ "from" : 4.03 }
]
}
}
}
I would expect answer to be like in previoues version that key IN NOT CHANGED. For example
{key: "*-2.58"}, {key: "2.58-3.1"}, ...
But it is
{key: "*-2.5799999237060547", doc_count: 0...}
{key: "2.5799999237060547-3.0999999046325684", doc_count: 2...}
{key: "3.0999999046325684-3.5999999046325684", doc_count:3…}
{key: "3.5999999046325684-4.03000020980835", doc_count: 3}
{key: "4.03000020980835-*", , doc_count: 3...}
How can I make key values fixed?