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

Geo with query doesn't return results if results are far away and limit isn't high

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.3.5
    • None
    • Index Maintenance
    • None

    Description

      > db.people.find({ loc:{$near:{y:40.74,x:74}}, city:'NEWARK'}).count()
      0
      > db.people.find({ loc:{$near:{y:40.74,x:74}}, city:'NEWARK'}).limit(368).toArray().length
      0
      > db.people.find({ loc:{$near:{y:40.74,x:74}}, city:'NEWARK'}).limit(369).count()
      0

      the $near location is in Manhattan

      Attachments

        Activity

          People

            eliot Eliot Horowitz (Inactive)
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: