Inserting big numbers into Elasticsearch

Hi,
I have tried to insert this number -1.e+99 into Elasticsearch but I can't. I take this values from a text file.
There is a way to convert this number?
Thanks!

Convert it into a real number, or something else?

What is the mapping for the field you are inserting into? This is beyond what a long data type can handle so there is no simple solution as far as I can see. How are you going to use and search this field?

I insert bulk a file with rows and columns. And this field is a column with values.

Converting in something that can be inserted

This is the error: [float] supports only finite values, but got [-Infinity]

You probably need to map it as a double, not float.

It works with double. Thank you so much! :slight_smile:

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