I am using Elasticsearch version 5.1.2. There is some kind of number overflow when I try to ingest long value close to Long.MAX_SIZE.
I have tried the same with ES 2.4 as well. Same issue again.
PUT /library/books/1
{
"longValue1" : -9223372036854775808,
"longValue2" : 9223372036854775807
}
GET /library/_search
This returns:
{
"took": 10,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 1,
"max_score": 1,
"hits": [
{
"_index": "library",
"_type": "books",
"_id": "1",
"_score": 1,
"_source": {
"longValue1": -9223372036854776000,
"longValue2": 9223372036854776000
}
}
]
}
}
Value: -9223372036854775808 becomes -9223372036854776000
Value: 9223372036854775807 becomes 9223372036854776000
Is this an known issue?
Please advise.
Thanks,
Sanal