Elasticsearch aggregation return location

Hi guys, a query on aggregation in which way I can return the location in the aggregation result. to then place it on the maps.

can you be more specific on what you are after? What should this location resemble? Why do you need an aggregation instead of a search hit? There are a couple of geo based aggregations, so maybe you can explain why those are not sufficient. Some more context would help a lot to understand what you are after.

Thanks!

--Alex

Hello, if I just see that with geo centroid I can return the location but make a count of it. What I would like is that it was only the result of the consultation plus 100 locations apart.

Example

...
"location" : {
   "lat" : 20,
   "lon" : -56
},
"location" : {
   "lat" : 20,
   "lon" : -66
}
...

but in aggregation

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