Corrent use of numeric type Long without losing precision

What is the correct use of the numeric datatype long? It seems that there are some pitfalls with values greater than +/- 2^53. (see https://stackoverflow.com/questions/38952262/elasticsearch-max-length-of-mapping-type-long/38952540#38952540)

How can I avoid the truncation to lower precision when storing them in ES or using them in ES queries? E.g. will quotation of numeric values have any effect?

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