elasticsearch/modules/runtime-fields-common
Christoph Büscher 5315ed6c32
Fix range queries on runtime double field (#71915)
DoubleScriptFieldRangeQuery which is used on runtime fields of type "double"
currently uses simple double type comparison for checking its upper and lower
bounds. Unfortunately it seems that -0.0 == 0.0, but when we want to exclude a
0.0 bound via "lt" the generated range query uses -0.0 as its upper bound which
erroneously includes the 0.0 value. We can use `Double.compare` instead which
seems to handle this edge case well.

Closes #71786
2021-04-20 16:44:45 +02:00
..
src Fix range queries on runtime double field (#71915) 2021-04-20 16:44:45 +02:00
build.gradle Apply REST API compatibility testing for the :modules (#71137) 2021-04-02 11:20:54 -05:00