Even if I change Format field to 0.[000] the result is always the same: The decimal part is never displayed properly. And the result remains unchanged when I use some of my fields (e.gdoc['*'].value / doc['*'].value).
If you change your values to 4 / 2, you'll see that it works.
The problem is that you are dividing integers, and 1 / 2 will produce an integer value of 0. If you want floating points, you can do 1.0 / 2.0 and you should see 0.5.
The value is computed in Elasticsearch and then sent to Kibana to visualize (using the format field), so the format field won't actually change the fact that Elasticsearch is giving a value of 0 for 1 / 2.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.