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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.5
    • Affects Version/s: None
    • Component/s: Index Maintenance
    • Labels:
      None

      > 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

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

              Created:
              Updated:
              Resolved: