$near queries don't work with multi-key

XMLWordPrintableJSON

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

      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 Studer (Inactive)
              Reporter:
              Kyle Banker (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: