# GeoDistanceFilter on large array of geo\_points?

**URL:** <https://discuss.elastic.co/t/geodistancefilter-on-large-array-of-geo-points/18739>\
**Category:** Elasticsearch\
**Created:** [July 18, 2014, 2:12pm UTC](https://discuss.elastic.co/t/geodistancefilter-on-large-array-of-geo-points/18739 "2014-07-18T14:12:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Josh\_J\_Luo](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@Josh\_J\_Luo](https://discuss.elastic.co/u/Josh_J_Luo)\
**Post date:** [July 18, 2014, 2:12pm UTC](https://discuss.elastic.co/t/geodistancefilter-on-large-array-of-geo-points/18739/1 "2014-07-18T14:12:42Z")

</div>

I have documents indexed on a field which contains large arrays of  
geo\_points. However, it seems every time the GeoDistanceFilter is iterate  
through the entire array to find a match. I am wondering why this happens  
and how I can avoid it. Thanks.

--  
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/44827661-5f26-410a-a6f3-75d3ee6a48b4%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/44827661-5f26-410a-a6f3-75d3ee6a48b4%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:14am UTC](https://discuss.elastic.co/t/geodistancefilter-on-large-array-of-geo-points/18739/2 "2017-07-06T01:14:53Z")

</div>


