[DOCS-15596] [Server] Add documentation for replacing $near $geoNear and $nearSphere with $geoWithin Created: 30/Aug/22  Updated: 30/Oct/23  Resolved: 17/Feb/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Task Priority: Blocker - P1
Reporter: Maddie Zechar Assignee: Kenneth Dyer
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-57932 Improve error message for $near in ag... Closed
Participants:
Days since reply: 1 year, 3 weeks, 1 day ago

 Description   

$near, $nearSphere, and $geoNear are not allowed in agg pipelines. This can be confusing for users as they can use these operators in non-agg geo queries. We are editing the error message to better explain why these operators are not permitted in an agg context and suggest workarounds (notably, use $geoWithin in agg pipeline if they don't care about sort). You can follow the conversation on SERVER-57932.

We would like to have documentation describing the workarounds in more detail and link to this documentation in our error message.



 Comments   
Comment by Maddie Zechar [ 17/Jan/23 ]

I wanted to follow up on this request. Is it possible to get an estimate for when this documentation can be added?

Generated at Thu Feb 08 08:13:20 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.