Hi,
This is a floating point rounding error. There are many numbers that
floating points cannot represent accurately and if you assign 1.9 to a
float, the value that will be stored is actually closer to 1.8998.
Since the range query internally works on doubles, which have better
precision
Hi,
I have a float field that I want to use in a range facet. I give one range
to the facet like the following query.
{
query: {
matchAll: {}
},
facets: {
imageSize: {
range: {
field: imageSize,
ranges: [
{
from: 1.9
}
]