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

allow $split to accept a list of strings to split on

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

      Currently $split takes a single 'xxx' string and splits a string wherever this string appears.

      It would be nice if it could accept a list of strings to split on. So

      input: {s:"abc/xyz=999-123"}
      {split:["$s",['/','=','-']]}
      output: [ "abc", "xyz", "999", "123" ]
      

            Assignee:
            backlog-query-optimization [DO NOT USE] Backlog - Query Optimization
            Reporter:
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: