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

Support index all paths

    • Type: Icon: New Feature New Feature
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: None

      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.

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

              Created:
              Updated:
              Resolved: