Hi, I'm doing a search that will return to me through the location of the closest point to the furthest point. And to that include the date of creation from the most current to the oldest
I am using the REST API
searchSourceBuilder.sort(new FieldSortBuilder("created_at").order(SortOrder.DESC));
searchSourceBuilder.sort(new GeoDistanceSortBuilder("location",geoPoint).sortMode(SortMode.MIN).order(SortOrder.DESC));
But doesnt work