Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-545

Support index all paths

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • $i18n.getText("admin.common.words.hide")
      Key Status/Resolution FixVersion
      NODE-1696 Won't Fix
      SCALA-452 Done
      CSHARP-2408 Fixed 2.9.0
      PERL-1008 Fixed 2.1.0
      RUBY-1484 Works as Designed
      JAVA-3014 Fixed 3.11.0
      CXX-1661 Works as Designed
      MOTOR-272 Works as Designed
      CDRIVER-2842 Works as Designed 1.15.0
      RUST-112 Done
      PYTHON-1789 Fixed 3.9
      GODRIVER-906 Fixed 1.1.0
      SWIFT-481 Fixed 1.1.0
      $i18n.getText("admin.common.words.show")
      #scriptField, #scriptField *{ border: 1px solid black; } #scriptField{ border-collapse: collapse; } #scriptField td { text-align: center; /* Center-align text in table cells */ } #scriptField td.key { text-align: left; /* Left-align text in the Key column */ } #scriptField a { text-decoration: none; /* Remove underlines from links */ border: none; /* Remove border from links */ } /* Add green background color to cells with FixVersion */ #scriptField td.hasFixVersion { background-color: #00FF00; /* Green color code */ } /* Center-align the first row headers */ #scriptField th { text-align: center; } Key Status/Resolution FixVersion NODE-1696 Won't Fix SCALA-452 Done CSHARP-2408 Fixed 2.9.0 PERL-1008 Fixed 2.1.0 RUBY-1484 Works as Designed JAVA-3014 Fixed 3.11.0 CXX-1661 Works as Designed MOTOR-272 Works as Designed CDRIVER-2842 Works as Designed 1.15.0 RUST-112 Done PYTHON-1789 Fixed 3.9 GODRIVER-906 Fixed 1.1.0 SWIFT-481 Fixed 1.1.0

    Description

      All drivers must support the new "wildcard" index type which will be added in MongoDB 4.2. Wildcard indexes are defined like this:

      { 
         key: {
             "$**": 1
         }
      }
      

      A single subtree can be indexed like so:

      { 
          key: {
               "<field>.$**": 1
          }
      }
      

      Projections are also possible using a new wildcardProjection index model option:

      {
        key: {
            "$**": 1
        },
        name: "foo",
        “wildcardProjection”: {
              "name": 1,
              "category": 1, 
              "cost": 1, 
              "descriptors": 1
         }
      }
      

      See the server syntax document for details.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rathi.gnanasekaran Rathi Gnanasekaran
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: