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

Support $type with wildcard index

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.4
    • Component/s: None
    • Labels:
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      db.c.createIndex({"$**":1})
      db.c.find({x: {$type: "object"}}).explain()
      

      Show
      db.c.createIndex({ "$**" :1}) db.c.find({x: {$type: "object" }}).explain()
    • Sprint:
      Query 2018-10-22

      Description

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

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              yuta.arai Yuta Arai
              Reporter:
              yuta.arai Yuta Arai
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: