Misplaced $maxDistance inside of $near
see: http://docs.mongodb.org/master/release-notes/2.6-compatibility/#maxdistance-changes
In previous version, $maxDistance could be either inside or outside the $near document.
You must update any existing $near queries on GeoJSON data that currently have the $maxDistance outside the $near document
Example:
db.places.find( { loc : { $near :
{ $geometry :
{ type : "Point" ,
coordinates: [ 40 , 5 ] }
$maxDistance : 500
},
}
} )
- is depended on by
-
DRIVERS-147 $maxDistance changes in 2.6 for GeoJSON
- Closed