# Why is this geo\_distance not working for me?

**URL:** <https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696>\
**Category:** Elasticsearch\
**Created:** [June 23, 2011, 8:29pm UTC](https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696 "2011-06-23T20:29:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mauricio\_Alarcon](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mauricio\_Alarcon](https://discuss.elastic.co/u/Mauricio_Alarcon)\
**Post date:** [June 23, 2011, 8:29pm UTC](https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696/1 "2011-06-23T20:29:18Z")

</div>

Hi guys,

I know it has to be something simple, but it just not work for me.  
I'm using 0.16.1

I'm pretty much cloning what Shay did on the blog post about geo  
location and search, [http://www.elasticsearch.org/blog/2010/08/16/geo\_location\_and\_search.html](http://www.elasticsearch.org/blog/2010/08/16/geo_location_and_search.html)

Here is my gist with all the steps

> <https://gist.github.com/mauricioalarcon/1043546>

Any ideas?

I've also tried with other document way more complex and I've got the  
same error

Thanks

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [June 23, 2011, 9:08pm UTC](https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696/2 "2011-06-23T21:08:51Z")

</div>

Try this: [geo\_distance test for ES · GitHub](https://gist.github.com/1043630)

On Thu, Jun 23, 2011 at 4:29 PM, maverick [mauricio.alarcon@gmail.com](mailto:mauricio.alarcon@gmail.com)wrote:

> Hi guys,
> 
> I know it has to be something simple, but it just not work for me.  
> I'm using 0.16.1
> 
> I'm pretty much cloning what Shay did on the blog post about geo  
> location and search,  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/2010/08/16/geo_location_and_search.html)
> 
> Here is my gist with all the steps
> 
> [geo\_distance test for ES · GitHub](https://gist.github.com/1043546)
> 
> Any ideas?
> 
> I've also tried with other document way more complex and I've got the  
> same error
> 
> Thanks

---

<div class="post-metadata">

**Author:** ![Mauricio\_Alarcon](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@Mauricio\_Alarcon](https://discuss.elastic.co/u/Mauricio_Alarcon)\
**Post date:** [June 23, 2011, 9:29pm UTC](https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696/3 "2011-06-23T21:29:15Z")

</div>

Igor,

Thanks a lot, now is working, besides the mapping to geo\_point I also  
needed more distance in the search

Cheers

On Jun 23, 5:08 pm, Igor Motov [i...@motovs.org](mailto:i...@motovs.org) wrote:

> Try this:[geo\_distance test for ES · GitHub](https://gist.github.com/1043630)
> 
> On Thu, Jun 23, 2011 at 4:29 PM, maverick [mauricio.alar...@gmail.com](mailto:mauricio.alar...@gmail.com)wrote:
> 
> > Hi guys,
> 
> > I know it has to be something simple, but it just not work for me.  
> > I'm using 0.16.1
> 
> > I'm pretty much cloning what Shay did on the blog post about geo  
> > location and search,  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/blog/2010/08/16/geo_location_and_search)....
> 
> > Here is my gist with all the steps
> 
> > [geo\_distance test for ES · GitHub](https://gist.github.com/1043546)
> 
> > Any ideas?
> 
> > I've also tried with other document way more complex and I've got the  
> > same error
> 
> > Thanks

---

<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, 4:02am UTC](https://discuss.elastic.co/t/why-is-this-geo-distance-not-working-for-me/4696/4 "2017-07-06T04:02:48Z")

</div>


