If i index geopoints with elasticsearch, what aggregation parameters should I be reading about to query as follows?
Let's say i'm storing user transactions, each of which has a geopoint associated with it. Very likely, a user will have multiple transactions at the same geopoint -- however, I only care about geopoints that have another users geopoint(s) within, say, 1 mile of it (i.e. doc.userId !== doc2.userId) This would tell me unique users that are doing business in the same area.
I'm just getting started with ES geo querying and wondering if someone can get me started with a sample query achieving something similar. Thanks.