Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1990

$near and $maxDistance shouldn't require a particular order

    • Type: Icon: Bug Bug
    • Resolution: Won't Do
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Geo
    • Query
    • ALL

      I think these should be synonymous:

      db.collection.find( { latlng :

      { $near : [50,50] , $maxDistance : 5 }

      } )
      db.collection.find( { latlng :

      { $maxDistance : 5 , $near : [50,50] }

      } )

            Votes:
            11 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: