Support geo.distance in select result
Azure Search does not support returning the distance data from geo.distance in search results. geo.distance can be used in only filter and orderby.
I would like to get distance data from geo.distance.
Thank you for your feedback. While it is unlikely we’ll address this suggestion in the near future, we’ll reassess based on the number of votes it receives.
There are a few ways you can do this currently in code per document, for example (https://stackoverflow.com/questions/6544286/calculate-distance-of-two-geo-points-in-km-c-sharp). But we are considering how we might make it available as a document property.
Azure Search Product Team
Ravi Ada commented
Is this available now? We need to show the distance in search results. Currently there is no way to do that, at the least I haven't found it in documentation.
much needed feature indeed!