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
Important feature and is much needed.
Making 'distance' as part of select list would facilitate a great value, as it avoids additional calculations and functionality outside the query, and it becomes very feasible to provide distance however it used the same coordinates in search.
Andre Fernandes Luiz commented
Is there any update?
Important feature. When do you expect to have this feature?
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!