[SERVER-59171] Allow {$meta: 'geoNearDistance'} syntax, at least internally Created: 06/Aug/21  Updated: 29/Oct/23  Resolved: 20/Aug/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: New Feature Priority: Major - P3
Reporter: David Percy Assignee: Milena Ivanova
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-58602 Rewrite $geoNear to $geoWithin + comp... Closed
Backwards Compatibility: Fully Compatible
Sprint: QO 2021-09-06
Participants:

 Description   

To support running a $geoNear stage in the middle of a pipeline, we want to rewrite it to something like $computeGeoNearDistance + $match + $sort by {$meta geoNearDistance}.

But currently $sort doesn't support {$meta: 'geoNearDistance'}. Hopefully this is something we just need to enable in the parser.



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 20/Aug/21 ]

Author:

{'name': 'Milena Ivanova', 'email': 'milena.ivanova@mongodb.com', 'username': 'mivanova3'}

Message: SERVER-59171 Allow {$meta: 'geoNearDistance'} syntax, at least intern…
Branch: master
https://github.com/mongodb/mongo/commit/1973dd31e526cdaa6d7e1d2d47f77ec6c9f35701

Generated at Thu Feb 08 05:46:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.