June 2017
Beginner to intermediate
404 pages
8h 22m
English
In this section, we will discuss how to use geolocation for aggregations. Only fields with explicit geolocation mapping can be used for the geolocation aggregation. The following geolocation aggregations are supported:
In this section, we will discuss geo distance and geo bounds aggregation and geohash grid aggregation is out of the scope for this book. To better demonstrate location-based aggregations, let's add a new type named store to the existing chapter8 index. The new type will contain documents representing physical stores with the store name and location fields. We can add the new mapping as shown here:
#Store Mapping PUT chapter8/_mapping/store { "properties": ...Read now
Unlock full access