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

Support field projection based on string inside of field name

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Aggregation Framework
    • Labels:
      None

      Description

      Suppose you have documents that look similar to this:

      { "PRE-field1" : "value",  "PRE-field2" : "value", "PRE-field3" : "value"}

      Fields in a document may start with "PRE-" and have any characters after that. During the projection stage, I want to be able to project all fields that contain the string "PRE-". Maybe the project statement looks something like this:

       "$fieldNameSearch" : /.*PRE-.*/i
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              akerti Aaron Kerti
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: