# Sense and ElasticDump roundingoff long type values

**URL:** <https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007>\
**Category:** Elasticsearch\
**Created:** [March 9, 2017, 3:19pm UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007 "2017-03-09T15:19:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![muthucse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muthucse/32/45217_2.png) [@muthucse](https://discuss.elastic.co/u/muthucse)\
**Post date:** [March 9, 2017, 3:19pm UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007/1 "2017-03-09T15:19:28Z")

</div>

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 ?

---

<div class="post-metadata">

**Author:** ![muthucse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muthucse/32/45217_2.png) [@muthucse](https://discuss.elastic.co/u/muthucse)\
**Post date:** [March 10, 2017, 8:39am UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007/2 "2017-03-10T08:39:04Z")

</div>

Any suggestions on the above ?

---

<div class="post-metadata">

**Author:** ![ebuildy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ebuildy/32/6070_2.png) [@ebuildy](https://discuss.elastic.co/u/ebuildy)\
**Post date:** [March 10, 2017, 9:21am UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007/3 "2017-03-10T09:21:11Z")

</div>

Use a string!

But I agree this is quite a bug, Lucene should check for data integrity before updating document.

---

<div class="post-metadata">

**Author:** ![muthucse](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/muthucse/32/45217_2.png) [@muthucse](https://discuss.elastic.co/u/muthucse)\
**Post date:** [March 13, 2017, 8:36am UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007/4 "2017-03-13T08:36:33Z")

</div>

okay Thanks a lot !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 10, 2017, 8:36am UTC](https://discuss.elastic.co/t/sense-and-elasticdump-roundingoff-long-type-values/78007/5 "2017-04-10T08:36:42Z")

</div>

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