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

Support field projection based on string inside of field name

    • Type: Icon: New Feature New Feature
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • Query Optimization

      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
      

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            akerti Aaron Kerti
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: