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

$near queries don't work with multi-key

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.8.0
    • Component/s: Geo
    • Labels:
      None
    • ALL

      db.foo.save({a: [

      {l: [1, 1]}

      ,

      {l: [2, 2]}

      ])
      db.foo.ensureIndex(

      { 'a.l': '2d' }

      )
      db.l.find({'a.l': {$near: [0, 0]}}).explain()

      {
      "cursor" : "GeoSearchCursor",
      "nscanned" : 1,
      "nscannedObjects" : 1,
      "n" : 1,
      "millis" : 0,
      "nYields" : 0,
      "nChunkSkips" : 0,
      "isMultiKey" : false,
      "indexOnly" : false,
      "indexBounds" : {

      }
      }

            Assignee:
            greg_10gen Greg Studer
            Reporter:
            kbanker Kyle Banker
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: