Is there a way to suppress elasticsearch from sending a bit number field in
scientific notation? For example, a field stored in ES, goal_revenue:
10000000, gets returned as goal_revenue:1e+07 with the search api.
On Saturday, September 13, 2014 2:31:45 PM UTC-7, Nick wrote:
Is there a way to suppress elasticsearch from sending a bit number field
in scientific notation? For example, a field stored in ES, goal_revenue:
10000000, gets returned as goal_revenue:1e+07 with the search api.
On Saturday, September 13, 2014 2:31:45 PM UTC-7, Nick wrote:
Is there a way to suppress elasticsearch from sending a bit number field
in scientific notation? For example, a field stored in ES, goal_revenue:
10000000, gets returned as goal_revenue:1e+07 with the search api.
ES uses Jackson, and Jackson uses Java Double.toString(), which has
peculiarities for numbers < 10^-3 or >= 10^7 since it converts them to
scientific notation.
There are two options:
patching ES for optional format options of doubles, e.g.
Is there a way to suppress elasticsearch from sending a bit number field
in scientific notation? For example, a field stored in ES, goal_revenue:
10000000, gets returned as goal_revenue:1e+07 with the search api.
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.