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

aggfmk $match operator support for nested field matching

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: