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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Geo
    • Query
    • ALL

    Description

      I think these should be synonymous:

      db.collection.find( { latlng :

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

      } )
      db.collection.find( { latlng :

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

      } )

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: