i trying to make aggregation for buckets
so i did
and the response is
key : name1
key name 2
i need different response i have the name and i have lat lon location on map.
i want to get in response :
now i want to have only the most recent lat lon per name .
i couldn't figure it out how to do it