# No results in query despite proper search results being in index

**URL:** <https://discuss.elastic.co/t/no-results-in-query-despite-proper-search-results-being-in-index/15866>\
**Category:** Elasticsearch\
**Created:** [February 18, 2014, 5:01am UTC](https://discuss.elastic.co/t/no-results-in-query-despite-proper-search-results-being-in-index/15866 "2014-02-18T05:01:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jay\_Zalowitz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jay_zalowitz/32/1793_2.png) [@Jay\_Zalowitz](https://discuss.elastic.co/u/Jay_Zalowitz)\
**Post date:** [February 18, 2014, 5:01am UTC](https://discuss.elastic.co/t/no-results-in-query-despite-proper-search-results-being-in-index/15866/1 "2014-02-18T05:01:56Z")

</div>

> <https://github.com/elastic/elasticsearch/issues/5149>

Does anyone have any advice for what I could be doing wrong?

Sample query:  
{  
"query": {  
"filtered": {  
"query": {  
"match\_all": {}  
},  
"filter": {  
"geo\_distance\_range": {  
"from": "1km",  
"to": "40000km",  
"profile.locationGeo": {  
"lat": 40,  
"lon": -70  
}  
}  
}  
}  
}  
}

Mappings include:  
locationGeo: {  
lat\_lon: true  
type: geo\_point  
geohash: true  
}

One profile ex:  
"locationGeo": {  
"lat": 32.96179,  
"lng": -96.8291685  
}

--  
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/d9027778-af16-4cc5-80d4-2c2004457d9b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d9027778-af16-4cc5-80d4-2c2004457d9b%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Binh\_Ly](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Binh\_Ly](https://discuss.elastic.co/u/Binh_Ly)\
**Post date:** [February 18, 2014, 4:53pm UTC](https://discuss.elastic.co/t/no-results-in-query-despite-proper-search-results-being-in-index/15866/2 "2014-02-18T16:53:05Z")

</div>

Can you double check that your document actually is indexed with the fields  
"lat" and "lon". So your example document should be indexed as:

"locationGeo": {  
_"lat"_: 32.96179,  
_"lon"_: -96.8291685  
}

--  
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/a116842c-53a2-429b-94d8-5916bf4e993f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a116842c-53a2-429b-94d8-5916bf4e993f%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:49am UTC](https://discuss.elastic.co/t/no-results-in-query-despite-proper-search-results-being-in-index/15866/3 "2017-07-06T01:49:23Z")

</div>


