# Geo Spatial Search returning 0 results

**URL:** <https://discuss.elastic.co/t/geo-spatial-search-returning-0-results/20412>\
**Category:** Elasticsearch\
**Created:** [October 23, 2014, 11:47pm UTC](https://discuss.elastic.co/t/geo-spatial-search-returning-0-results/20412 "2014-10-23T23:47:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Uldall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_uldall/32/1166_2.png) [@Eric\_Uldall](https://discuss.elastic.co/u/Eric_Uldall)\
**Post date:** [October 23, 2014, 11:47pm UTC](https://discuss.elastic.co/t/geo-spatial-search-returning-0-results/20412/1 "2014-10-23T23:47:31Z")

</div>

Hi friends,

I've done a bit of research and have yet to achieve the AHA! moment in my  
geo spatial searching troubles.

I've created a gist of the way i'm structuring my indexes for your  
review: [https://gist.github.com/ericuldall/a2e08503b1321b9fcc67](https://gist.github.com/ericuldall/a2e08503b1321b9fcc67)

I am able to see my documents when I do a search against all docs in my  
index, but when I add the geo\_distance filter it returns 0, even if use the  
exact lat, lon of a record in my index.

Any help is much appreciated.

I'll be eagerly awaiting any feedback.

Thank you,

Eric

--  
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/3b38141f-4847-486c-a02a-74a3febf2f5f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/3b38141f-4847-486c-a02a-74a3febf2f5f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Eric\_Uldall](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_uldall/32/1166_2.png) [@Eric\_Uldall](https://discuss.elastic.co/u/Eric_Uldall)\
**Post date:** [October 24, 2014, 12:09am UTC](https://discuss.elastic.co/t/geo-spatial-search-returning-0-results/20412/2 "2014-10-24T00:09:56Z")

</div>

So, I decided to switch to a simpler mapping and it resolved the problem.  
Instead of using "pin.location" i'm just using location now. Works for me!

Good day!

On Thursday, October 23, 2014 4:47:31 PM UTC-7, Eric Uldall wrote:

> Hi friends,
> 
> I've done a bit of research and have yet to achieve the AHA! moment in my  
> geo spatial searching troubles.
> 
> I've created a gist of the way i'm structuring my indexes for your review:  
> [Geo Spatial Curl Recreation · GitHub](https://gist.github.com/ericuldall/a2e08503b1321b9fcc67)
> 
> I am able to see my documents when I do a search against all docs in my  
> index, but when I add the geo\_distance filter it returns 0, even if use the  
> exact lat, lon of a record in my index.
> 
> Any help is much appreciated.
> 
> I'll be eagerly awaiting any feedback.
> 
> Thank you,
> 
> Eric

--  
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/c9374e58-04ed-45b3-9995-d465e353bb23%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c9374e58-04ed-45b3-9995-d465e353bb23%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:54am UTC](https://discuss.elastic.co/t/geo-spatial-search-returning-0-results/20412/3 "2017-07-06T00:54:04Z")

</div>


