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

Support $type with wildcard index

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • Hide
      db.c.createIndex({"$**":1})
      db.c.find({x: {$type: "object"}}).explain()
      
      Show
      db.c.createIndex({ "$**" :1}) db.c.find({x: {$type: "object" }}).explain()
    • Query 2018-10-22

      When running a $type query with a wildcard index, it currently will try to use the index leading to an incorrect result.

            Assignee:
            yuta.arai@mongodb.com Yuta Arai
            Reporter:
            yuta.arai@mongodb.com Yuta Arai
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: