# Geo\_bounding\_box wrong result

**URL:** <https://discuss.elastic.co/t/geo-bounding-box-wrong-result/24488>\
**Category:** Elasticsearch\
**Created:** [June 27, 2015, 7:27pm UTC](https://discuss.elastic.co/t/geo-bounding-box-wrong-result/24488 "2015-06-27T19:27:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![popovae](https://avatars.discourse-cdn.com/v4/letter/p/67e7ee/32.png) [@popovae](https://discuss.elastic.co/u/popovae)\
**Post date:** [June 27, 2015, 7:27pm UTC](https://discuss.elastic.co/t/geo-bounding-box-wrong-result/24488/1 "2015-06-27T19:27:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:04am UTC](https://discuss.elastic.co/t/geo-bounding-box-wrong-result/24488/2 "2017-07-06T00:04:56Z")

</div>


