Query help - geopoint with highest concentration of unique customer transactions


(Bird Law) #1

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.


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.