I have inserted 1 record with large amount in elastic search. The value is 99999999999
I have used below query and it return sum but value is wrong. It return 9.9999997952E10 how can I get accurate data?
{
"size": 0,
"query": {
"match": {
"subscribercompanyid": 40408
}
},
"aggs": {
"invoicedetails": {
"nested": {
"path": "invoicedetails"
},
"aggs": {
"Childe": {
"sum": {
"field" : "invoicedetails.valueinnumeric"
}
}
}
}
}
}
Response
{
"took": 0,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 0.0,
"hits": []
},
"aggregations": {
"invoicedetails": {
"doc_count": 1,
"Childe": {
"value": 9.9999997952E10
}
}
}
}