Geo_bounding_box wrong result


(Popovae) #1

Hello everyone!

I'm updating to ES 1.5 and noticed strange behavior of Geo_bounding_box filter.
for example we have 5 points point with the same location: 52.5175966077,13.3878377098
If I will make a query:

    {"geo_bounding_box":
         {"location":
                {
                  "top_left":"52.5175966077,13.3878377098",
                 "bottom_right":"52.5175966077,13.3878377098"
    }}}

I get 0 results returned. This was returning all 5 results in ES 1.4 and seems like a bug to me.

At the same time, if you have a few points with different locations and will make a query with bounding box around them it will return all of them, BUT will exclude the ones in the corners, for example

{"geo_bounding_box":
             {"location":
                    {
                      "top_left":"51.5175966077,12.3878377098",
                     "bottom_right":"52.5175966077,13.3878377098"
        }}}

will return all docs inside, but not the docs with location 52.5175966077,13.3878377098 or 51.5175966077,12.3878377098

Can someone suggest a workaround or say if this bug still exists in higher versions of ES?


(system) #2