[DOCS-2919] $near example show $maxDistance in the wrong sub-document. Created: 15/Mar/14  Updated: 17/Mar/14  Resolved: 17/Mar/14

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

Type: Bug Priority: Major - P3
Reporter: Daniel Pasette (Inactive) Assignee: Sam Kleinman (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 48 weeks, 2 days ago

 Description   

http://docs.mongodb.org/manual/reference/operator/query/near/#op._S_near

Looks like our docs show maxDistance in the wrong spot.

The maxDistance should be in $geometry:
http://docs.mongodb.org/master/release-notes/2.6-compatibility/#maxdistance-changes

Here's an example from our page with the maxDistance in the $near doc:

db.places.find( { loc : { $near :
                           { $geometry :
                               { type : "Point" ,
                                 coordinates: [ 40 , 5 ] } },
                             $maxDistance : 500
                } } )



 Comments   
Comment by Githook User [ 17/Mar/14 ]

Author:

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

Message: DOCS-2919 maxDistance should be in near doc not geometry doc
Branch: master
https://github.com/mongodb/docs/commit/8520e2fbe2286d2a0c6b61e5571721fdc9b5124e

Comment by Githook User [ 17/Mar/14 ]

Author:

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

Message: DOCS-2919 maxDistance should be in near doc not geometry doc
Branch: master
https://github.com/mongodb/docs/commit/0695e6cb048e9c8f4d74ed1deed1ce4441a96f8c

Comment by Githook User [ 17/Mar/14 ]

Author:

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

Message: DOCS-2919 maxDistance should be in near doc
Branch: v2.4
https://github.com/mongodb/docs/commit/a0760e4d29622a0fdb4cbce9b94a91f2bfdff2ea

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