We are working on updating this book for the latest version. Some content might be out of date.
Although filtering or scoring results by geolocation is useful, it is often more useful to be able to present information to the user on a map. A search may return way too many results to be able to display each geo-point individually, but geo-aggregations can be used to cluster geo-points into more manageable buckets.
Three aggregations work with fields of type
- Groups documents into concentric circles around a central point.
- Groups documents by geohash cell, for display on a map.
lat/loncoordinates of a bounding box that would encompass all of the geo-points. This is useful for choosing the correct zoom level when displaying a map.