muthucse
(Muthu)
March 9, 2017, 3:19pm
1
When inserting a document into elasticsearch through elasticdump and sense plugin roundinoff the long values.
POST longval/user/1
{
"userId": 123456789123456567
}
When getting the same index
"_index": "longval",
"_type": "user",
"_id": "1",
"_score": 1,
"_source": {
"userId": 123456789123456560
}
How to overcome this, Why does it rounds the after certain digits ?
muthucse
(Muthu)
March 10, 2017, 8:39am
2
Any suggestions on the above ?
ebuildy
(Thomas Decaux)
March 10, 2017, 9:21am
3
Use a string!
But I agree this is quite a bug, Lucene should check for data integrity before updating document.
system
(system)
Closed
April 10, 2017, 8:36am
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.