I am looking to do a geohash aggregation on a parent/child relationship. Our data model looks like the following:
A contact can have multiple different types of locations associated with it (parent: contact, child: location). The location documents contain a
geo_point data type.
We have started to look at parent/child due to the cost of having to update the parent document anytime any locations change.
We want to be able to the list of geohash grid buckets that contain a count of the number of unique contacts (parent id). Is this possible? We are using ES 6.0.0