Expose calculated distance in geoDistance search


#1

I’m doing a few geo searches at the moment. Ordering a query by geoDistance works like a charm, also aggregating the results into counted buckets.

I believe Elastic does expose the actual distance from origin point for each record in the search result when you sort by geo distance. But as far as I can tell, this info is not exposed in the result I get from contentLib.query. Any chance you could also include this metadata in some structure for each record?

I would love to get the sort field like here.

This would open up Enonic XP for even more user friendly applications.