[DOCS-3465] $near page should note that it can't be used to query sharded collections Created: 23/May/14  Updated: 13/Mar/15  Resolved: 06/Jun/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.6

Type: Improvement Priority: Major - P3
Reporter: Jason Zucchetto Assignee: Kay Kim (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to DOCS-4995 Modify $nearSphere documentation to b... Closed
Participants:
Days since reply: 9 years, 36 weeks, 5 days ago

 Description   

This page: http://docs.mongodb.org/manual/reference/operator/query/near/

geoNear command, or $geoNear within aggregate() can be used instead.

If the collection is sharded, the following message will appear when using $near:

error: { "$err" : "use geoNear command rather than $near query", "code" : 13501 }

Related to SERVER-1981



 Comments   
Comment by Githook User [ 06/Jun/14 ]

Author:

{u'username': u'kay-kim', u'name': u'kay', u'email': u'kay.kim@10gen.com'}

Message: DOCS-3465 near and sharded cluster
Branch: master
https://github.com/mongodb/docs/commit/a9a92052a222d7020470b1aaee73e8887c35887e

Generated at Thu Feb 08 07:45:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.