Unable to locate nested geopoint after updating to elasticsearch 2.3
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi
--
Chapters
00:00 Unable To Locate Nested Geopoint After Updating To Elasticsearch 2.3
02:15 Accepted Answer Score 2
02:28 Thank you
--
Full question
https://stackoverflow.com/questions/4163...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #elasticsearch #elasticsearchdsl
#avk47
    Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Cool Puzzler LoFi
--
Chapters
00:00 Unable To Locate Nested Geopoint After Updating To Elasticsearch 2.3
02:15 Accepted Answer Score 2
02:28 Thank you
--
Full question
https://stackoverflow.com/questions/4163...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #elasticsearch #elasticsearchdsl
#avk47
ACCEPTED ANSWER
Score 2
This should work:
        test_location = '53.5411062377, -2.11485504709'
        test_distance = "3miles"
        location_query = Q("geo_distance", 
                            addresses__location=test_location,
                            distance=test_distance)
        query = query.filter("nested", 
                             path="addresses",
                             query=location_query)