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

XMLWordPrintableJSON

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

      I think these should be synonymous:

      db.collection.find( { latlng :

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

      } )
      db.collection.find( { latlng :

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

      } )

            Assignee:
            Backlog - Query Team (Inactive)
            Reporter:
            Kyle Banker (Inactive)
            Votes:
            11 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved: