# Geo\_distance filter not working on nested location data 2.3.5

**URL:** <https://discuss.elastic.co/t/geo-distance-filter-not-working-on-nested-location-data-2-3-5/58987>\
**Category:** Elasticsearch\
**Created:** [August 25, 2016, 11:14pm UTC](https://discuss.elastic.co/t/geo-distance-filter-not-working-on-nested-location-data-2-3-5/58987 "2016-08-25T23:14:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![flowardnut](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@flowardnut](https://discuss.elastic.co/u/flowardnut)\
**Post date:** [August 25, 2016, 11:14pm UTC](https://discuss.elastic.co/t/geo-distance-filter-not-working-on-nested-location-data-2-3-5/58987/1 "2016-08-25T23:14:14Z")

</div>

version: elasticsearch: stable 2.3.5, devel 5.0.0-alpha5, HEAD. OSX, java 8\_102

I've used a nested location, and running into an issue of 'failed to find geo\_point field [location]' when doing a nested query.

I found this post from 2015 that is doing something very similar to what I'm doing, and it is also giving me the same error when I go to run the nested geo\_distance query: [https://gist.github.com/imotov/653bc34c693a1ef739fb](https://gist.github.com/imotov/653bc34c693a1ef739fb)

Running a non-nested query on the location like this doesn't give an error but also doesn't give results (which makes sense since locations are nested):

```
curl -XGET 'localhost:9200/test-idx/doc/_search' -d '
{
"filter": {
	"geo_distance_range": {
		"distance": "600km",
		"seller.address.location": {"lat": 49.00331,
                            "lon": 2.0834715}
	}
}
}'

```

I'm new and probably doing something silly 🙂 Thanks in advance!

---

<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 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/geo-distance-filter-not-working-on-nested-location-data-2-3-5/58987/2 "2017-07-05T22:25:07Z")

</div>


