How can we improve Azure Search?

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.

92 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Anonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    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.

    Thanks,
    Vinod
    Azure Search Product Team

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Ravi Ada commented  ·   ·  Flag as inappropriate

        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.

      Feedback and Knowledge Base