So I have an index of events, each event has an id and can contain multiple locations:
id: {
type: 'keyword'
},
locations: {
type: 'geo_point'
},
title: {
type: 'text'
},
etc...
Given an Id, I can query ElasticSearch and get a list of locations.
For each location I can then make a geo query and collect more events close by within an area.
Is there a form of query I could use to make a single round trip, maybe using aggregations?
Basically I would submit an id and get a collection of near by ids.
Still fairly new with ES so some help would be appreciated!