[SERVER-75557] Allow minDistance and maxDistance parameters in $geoNear pipeline stage to take expressions Created: 31/Mar/23 Updated: 29/Oct/23 Resolved: 28/Sep/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Ted Tuckman | Assignee: | Erin Zhu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Assigned Teams: |
Query Integration
|
||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||
| Sprint: | QI 2023-09-18, QI 2023-10-02 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
The minDistance and maxDistance parameters are only allowed to be a constant numbers right now. We can loosen the restriction to allow any expression as long as they evaluate to a number https://www.mongodb.com/docs/manual/reference/operator/aggregation/geoNear/ |
| Comments |
| Comment by Githook User [ 27/Sep/23 ] |
|
Author: {'name': 'Erin Zhu', 'email': 'erin.zhu@mongodb.com', 'username': 'erinzhu001'}Message: |