# Would having thousands of geopoints for one index cause problems?

**URL:** <https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222>\
**Category:** Elasticsearch\
**Created:** [June 26, 2012, 12:34am UTC](https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222 "2012-06-26T00:34:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mic\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mic_2/32/2753_2.png) [@mic\_2](https://discuss.elastic.co/u/mic_2)\
**Post date:** [June 26, 2012, 12:34am UTC](https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222/1 "2012-06-26T00:34:27Z")

</div>

Hi,

Excuse my lazy question here, but I was wondering if anyone has experience  
with putting thousands of geopoints into a document.

I would love to hear the effect this would have on searching anywhere from  
100,000 - 5 million documents (each having 1-100,000 geopoints).

Any additional pointers as to how many geopoints would be within a  
reasonable range would be greatly appreciated.

Thanks,  
Mic

---

<div class="post-metadata">

**Author:** ![Pierre\_Durand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pierre_durand/32/1895_2.png) [@Pierre\_Durand](https://discuss.elastic.co/u/Pierre_Durand)\
**Post date:** [June 26, 2012, 8:41pm UTC](https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222/2 "2012-06-26T20:41:11Z")

</div>

I have 70000 documents with approximatly 200 geopoint per documents.  
If you want to filter by distance, you should use "plane" distance\_type.

Oddly, I have better performance if the cache is enabled on the geodistance  
filter (even if searches uses different location)

On Tuesday, June 26, 2012 2:34:27 AM UTC+2, Mic wrote:

> Hi,
> 
> Excuse my lazy question here, but I was wondering if anyone has experience  
> with putting thousands of geopoints into a document.
> 
> I would love to hear the effect this would have on searching anywhere from  
> 100,000 - 5 million documents (each having 1-100,000 geopoints).
> 
> Any additional pointers as to how many geopoints would be within a  
> reasonable range would be greatly appreciated.
> 
> Thanks,  
> Mic

---

<div class="post-metadata">

**Author:** ![mic\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mic_2/32/2753_2.png) [@mic\_2](https://discuss.elastic.co/u/mic_2)\
**Post date:** [June 27, 2012, 1:04am UTC](https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222/3 "2012-06-27T01:04:48Z")

</div>

Sounds like I will be giving this a try. I am going to mock up some test  
documents and give this a go.

Thank you very much for sharing your experience with the filter, and  
caching, as well. This is great information.

Mic

On Tue, Jun 26, 2012 at 1:41 PM, Pierre Durand [pierredurand@gmail.com](mailto:pierredurand@gmail.com)wrote:

> I have 70000 documents with approximatly 200 geopoint per documents.  
> If you want to filter by distance, you should use "plane" distance\_type.
> 
> Oddly, I have better performance if the cache is enabled on the  
> geodistance filter (even if searches uses different location)
> 
> On Tuesday, June 26, 2012 2:34:27 AM UTC+2, Mic wrote:
> 
> > Hi,
> > 
> > Excuse my lazy question here, but I was wondering if anyone has  
> > experience with putting thousands of geopoints into a document.
> > 
> > I would love to hear the effect this would have on searching anywhere  
> > from 100,000 - 5 million documents (each having 1-100,000 geopoints).
> > 
> > Any additional pointers as to how many geopoints would be within a  
> > reasonable range would be greatly appreciated.
> > 
> > Thanks,  
> > Mic

---

<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, 3:22am UTC](https://discuss.elastic.co/t/would-having-thousands-of-geopoints-for-one-index-cause-problems/8222/4 "2017-07-06T03:22:23Z")

</div>


