Decimal precision issue

Hi. I'm looking for a way to omit rounding large numbers when uploading to elastic through NEST. I've came through another topic, where it was suggested that Kibana rounds the numbers, rather than Elastic. However, the same happens when I use NEST. Here is a code snapshot.

 await _client.IndexAsync<EntityClass>(ent, i => i
              .Index("test")
              .Refresh(Refresh.WaitFor)
              .Id(ent.Id));

Here is the mapping I'm using.

{

  "mappings": {

"_doc": {

  "properties": {

    "num": {

      "type": "double"

    }

  }

}

}

In my case, I'm trying to upload the number 999999999999.999999 without casting it to a string. But it is saved as 1000000000000. Is that possible to do?

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