Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return distance when sorting by _geo_distance #132

Open
Kayrim opened this issue Aug 21, 2023 · 1 comment
Open

Return distance when sorting by _geo_distance #132

Kayrim opened this issue Aug 21, 2023 · 1 comment
Labels
waiting Waiting for more details from issue author

Comments

@Kayrim
Copy link

Kayrim commented Aug 21, 2023

would be awesome if we could include the distance value with the search result.

I know this can be done with SQL but would be great if we could add it to the result.

Similar to how we add score with $search->trackScores(true)

Something like $search->trackDistance(true) ? maybe

Will possibly add it locally, if it works would you like a PR?

@sanikolaev
Copy link
Collaborator

Will possibly add it locally, if it works would you like a PR?

Yes, we'd like a PR about it. Thanks!

@sanikolaev sanikolaev added the waiting Waiting for more details from issue author label Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting Waiting for more details from issue author
Projects
None yet
Development

No branches or pull requests

2 participants