Can I set the precision of a double comparison?


(John Harding) #1

Is it possible to set the precision of a double comparison?

e.g. in index I have 0.127 and (due to rounding errors) my search query is generated as 0.12700000001. Is there a way to tell ES to only use the first N significant digits when doing the comparison?

Thanks.
John H.


(system) #2