# Geo\_bounding\_box returns 0 results every time

**URL:** <https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059>\
**Category:** Elasticsearch\
**Created:** [April 2, 2015, 9:09am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059 "2015-04-02T09:09:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Miliunas](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marius\_Miliunas](https://discuss.elastic.co/u/Marius_Miliunas)\
**Post date:** [April 2, 2015, 9:09am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059/1 "2015-04-02T09:09:25Z")

</div>

Am experiencing a geo bounding box issue that returns 0 results no matter  
how I modify the query

_This gist [https://gist.github.com/maruf89/7c1cb805511b48ac7720](https://gist.github.com/maruf89/7c1cb805511b48ac7720)_ contains  
the setup and query along with a similar query that should work.

I've tested on ES 1.3.0 and 1.5.0

Am I missing something here?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a2b7abcd-c75b-4fd8-807e-cc25385f442c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a2b7abcd-c75b-4fd8-807e-cc25385f442c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![christian\_5](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@christian\_5](https://discuss.elastic.co/u/christian_5)\
**Post date:** [April 2, 2015, 9:42am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059/2 "2015-04-02T09:42:18Z")

</div>

Hi,

Should the top\_left latitude not be higher than the bottom\_right latitude,  
giving the following bounding box?

"geo\_bounding\_box":{  
"coords":{  
"top\_left":{  
"lat":55,  
"lon":10  
},  
"bottom\_right":{  
"lat":50,  
"lon":15  
}  
}  
}

Best regards,

Christian

On Thursday, April 2, 2015 at 10:09:26 AM UTC+1, Marius Miliunas wrote:

> Am experiencing a geo bounding box issue that returns 0 results no matter  
> how I modify the query
> 
> _This gist [https://gist.github.com/maruf89/7c1cb805511b48ac7720](https://gist.github.com/maruf89/7c1cb805511b48ac7720)_ contains  
> the setup and query along with a similar query that should work.
> 
> I've tested on ES 1.3.0 and 1.5.0
> 
> Am I missing something here?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/c2947d3e-120f-4e65-a852-9dfb9cd4d106%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c2947d3e-120f-4e65-a852-9dfb9cd4d106%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Marius\_Miliunas](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marius\_Miliunas](https://discuss.elastic.co/u/Marius_Miliunas)\
**Post date:** [April 2, 2015, 11:12am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059/3 "2015-04-02T11:12:25Z")

</div>

Duh... Thanks a ton Chris. I was starting to go nuts.

On Thursday, April 2, 2015 at 11:09:26 AM UTC+2, Marius Miliunas wrote:

> Am experiencing a geo bounding box issue that returns 0 results no matter  
> how I modify the query
> 
> _This gist [https://gist.github.com/maruf89/7c1cb805511b48ac7720](https://gist.github.com/maruf89/7c1cb805511b48ac7720)_ contains  
> the setup and query along with a similar query that should work.
> 
> I've tested on ES 1.3.0 and 1.5.0
> 
> Am I missing something here?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/df548ca2-92cb-43d7-bda4-91ed090ecc24%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/df548ca2-92cb-43d7-bda4-91ed090ecc24%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Marius\_Miliunas](https://avatars.discourse-cdn.com/v4/letter/m/76d3ee/32.png) [@Marius\_Miliunas](https://discuss.elastic.co/u/Marius_Miliunas)\
**Post date:** [April 2, 2015, 11:13am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059/4 "2015-04-02T11:13:22Z")

</div>

Duh... Thanks a ton Christian. I was starting to go nuts.

On Thursday, April 2, 2015 at 11:42:18 AM UTC+2, [chri...@elastic.co](mailto:chri...@elastic.co) wrote:

> Hi,
> 
> Should the top\_left latitude not be higher than the bottom\_right latitude,  
> giving the following bounding box?
> 
> "geo\_bounding\_box":{  
> "coords":{  
> "top\_left":{  
> "lat":55,  
> "lon":10  
> },  
> "bottom\_right":{  
> "lat":50,  
> "lon":15  
> }  
> }  
> }
> 
> Best regards,
> 
> Christian
> 
> On Thursday, April 2, 2015 at 10:09:26 AM UTC+1, Marius Miliunas wrote:
> 
> > Am experiencing a geo bounding box issue that returns 0 results no matter  
> > how I modify the query
> > 
> > _This gist [https://gist.github.com/maruf89/7c1cb805511b48ac7720](https://gist.github.com/maruf89/7c1cb805511b48ac7720)_ contains  
> > the setup and query along with a similar query that should work.
> > 
> > I've tested on ES 1.3.0 and 1.5.0
> > 
> > Am I missing something here?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/450f0e6a-2bc6-4b2a-a5ea-a7396c4903af%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/450f0e6a-2bc6-4b2a-a5ea-a7396c4903af%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:22am UTC](https://discuss.elastic.co/t/geo-bounding-box-returns-0-results-every-time/23059/5 "2017-07-06T00:22:05Z")

</div>


