# Geo Query not working for me

**URL:** <https://discuss.elastic.co/t/geo-query-not-working-for-me/3305>\
**Category:** Elasticsearch\
**Created:** [September 6, 2010, 5:29pm UTC](https://discuss.elastic.co/t/geo-query-not-working-for-me/3305 "2010-09-06T17:29:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![smruti](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@smruti](https://discuss.elastic.co/u/smruti)\
**Post date:** [September 6, 2010, 5:29pm UTC](https://discuss.elastic.co/t/geo-query-not-working-for-me/3305/1 "2010-09-06T17:29:41Z")

</div>

Hi,

Geo tagging feature is not working for me. Can someone please guide me.

Query:

curl -XGET localhost:9200/twitter/tweet/\_search -d "{"query":{"filtered":{"query" : {"match\_all":{}},"filter" : {"geo\_distance":{ "distance": "200km", "location":[ 12.970000000000001,77.  
590000000000003] }}}}}"

Result:  
{"\_shards":{"total":5,"successful":5,"failed":0},"hits":{"total":0,"max\_score":n  
ull,"hits":[]}}

Mapping File:  
....,"location":"geohash\_precision":12,"lat\_lon":true,"path":"full","resolution":"64","type":"geo\_point","geohash":false},...

Stored Index:  
"location": [12.970000000000001, 77.590000000000003]}}]}}

As the mapping file seems correct and the query also returns proper result with out geo filter. I am not sure what is happening wrong here.

Thank

---

<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:19am UTC](https://discuss.elastic.co/t/geo-query-not-working-for-me/3305/2 "2017-07-06T04:19:41Z")

</div>


