elasticsearch/elasticsearch — Issue #1689: Facet for clustering geo_points
Author: ejain
Created: 2012-02-10 04:00:33+00:00
State: open

elasticsearch supports bounding box queries and even has a distance
facet. But in order to show a large number of points on a map, it would be useful to also have a facet that clusters nearby points together.

The code at https://github.com/ejain/elasticsearch-geocluster provides a simple GeoClusterBuilder that generates GeoClusters from nearby GeoPoints, and a GeoClusterReducer that merges nearby clusters.

Here is some sample output for 1,000 points:

- https://www.google.com/fusiontables/DataSource?snapid=S390301uCMp (4000/2000km)
- https://www.google.com/fusiontables/DataSource?snapid=S3903022wAS (1000/500km)
- https://www.google.com/fusiontables/DataSource?snapid=S390401WTnD (500/250km)