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
Attachments
Issue Links
- is related to
-
DOCS-4995 Modify $nearSphere documentation to be in line with $near for sharded collections
-
- Closed
-