# Geo Optimizations and Features

**URL:** https://discuss.elastic.co/t/geo-optimizations-and-features/5197
**Category:** Elasticsearch
**Created:** [August 19, 2011, 4:29am UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197 "2011-08-19T04:29:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [August 19, 2011, 4:29am UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197/1 "2011-08-19T04:29:18Z")

</div>

Heya,

A considerable performance improvement to geo distance based filters and  
computation has been pushed to master:  
[https://github.com/elasticsearch/elasticsearch/issues/1261](https://github.com/elasticsearch/elasticsearch/issues/1261).

Also, geo point type mapping features have been added. By default,  
normalization will now be performed on points, and validation is by default  
on as well: [https://github.com/elasticsearch/elasticsearch/issues/1262](https://github.com/elasticsearch/elasticsearch/issues/1262).

In general, we can also do similar bounding box optimization to polygon  
filter, by trying to derive the bounding box around it, but this only make  
sense if either we assume the points do not cross the meridian (for  
example), or, we assume the points are provided in some sort of order. This  
can possibly be faster compared to "and'ing" with a bounding box filter  
(less operations). What do people think?

---

<div class="post-metadata">

### Author: ![Craig\_Brown](https://avatars.discourse-cdn.com/v4/letter/c/ce7236/32.png) [@Craig\_Brown](https://discuss.elastic.co/u/Craig_Brown)
#### Post date: [August 19, 2011, 4:32pm UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197/2 "2011-08-19T16:32:21Z")

</div>

Sounds like a great idea. Note the requirements and let people use it.

- Craig

On Thu, Aug 18, 2011 at 10:29 PM, Shay Banon [kimchy@gmail.com](mailto:kimchy@gmail.com) wrote:

> Heya,
> 
> A considerable performance improvement to geo distance based filters and  
> computation has been pushed to master:  
> [Geo Distance Filter Bounding Box Optimization · Issue #1261 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1261).
> 
> Also, geo point type mapping features have been added. By default,  
> normalization will now be performed on points, and validation is by default  
> on as well: [Geo Type Mapping: Add normalize flag (default to true), and default validate to true · Issue #1262 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/1262).
> 
> In general, we can also do similar bounding box optimization to polygon  
> filter, by trying to derive the bounding box around it, but this only make  
> sense if either we assume the points do not cross the meridian (for  
> example), or, we assume the points are provided in some sort of order. This  
> can possibly be faster compared to "and'ing" with a bounding box filter  
> (less operations). What do people think?

--  
…  
CRAIG BROWN  
chief architect  
youwho, Inc.

_[www.youwho.com](http://www.youwho.com)_ [http://www.youwho.com/](http://www.youwho.com/)

T: 801.855. 0921  
M: 801.913. 0939

---

<div class="post-metadata">

### Author: ![ian\_clark](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ian_clark/32/3129_2.png) [@ian\_clark](https://discuss.elastic.co/u/ian_clark)
#### Post date: [August 19, 2011, 10:16pm UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197/3 "2011-08-19T22:16:16Z")

</div>

That improvement looks good, can't wait to try it out.

Re: polygons, the faster the better, but I think it's quite easy to have  
polygons that cross the meridian though... how would we have to order the  
points? It would be worth it for the performance, but maybe that  
optimisation should be turned off by default? (and turned on by those who  
knew what they were doing?)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [August 22, 2011, 7:54am UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197/4 "2011-08-22T07:54:16Z")

</div>

By order I means some way to easily derive the bounding box around the  
provided polygons.

On Sat, Aug 20, 2011 at 1:16 AM, Ian Clark [ian.andrew.clark@gmail.com](mailto:ian.andrew.clark@gmail.com)wrote:

> That improvement looks good, can't wait to try it out.
> 
> Re: polygons, the faster the better, but I think it's quite easy to have  
> polygons that cross the meridian though... how would we have to order the  
> points? It would be worth it for the performance, but maybe that  
> optimisation should be turned off by default? (and turned on by those who  
> knew what they were doing?)

---

<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:56am UTC](https://discuss.elastic.co/t/geo-optimizations-and-features/5197/5 "2017-07-06T03:56:27Z")

</div>


