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

aggfmk $match operator support for nested field matching

    • Type: Icon: New Feature New Feature
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.6.0-rc3
    • Component/s: Aggregation Framework
    • None

      Currently it is not possible from a simple $match query on the aggregation framework to match fields of a document that might contain the same value:

      test> db.example.insert( { 'colour': 'BLUE', 'color': 'BLUE'   }   )
      Inserted 1 record(s) in 157ms
      WriteResult({
        "nInserted": 1
      })
      test> db.example.aggregate( {$match:{ "colour": "$color"  }  })
      {
        "result": [ ],
        "ok": 1
      }
      

      given the semantics of the "$" operator we should be able to support it.

            Assignee:
            Unassigned Unassigned
            Reporter:
            norberto.leite Norberto Fernando Rocha Leite (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: