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

$substr to locate occurrence of a "pattern" within a "string"

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None

      Would be nice to have a string occurrence operator(less expensive than regex), like this:

      db.coll.find( { servername :{ $substr : "node0" }} )
      

            Assignee:
            ramon.fernandez@mongodb.com Ramon Fernandez Marina
            Reporter:
            dev.ashevchuk@gmail.com Andrew Shevchuk
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: