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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • 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 Marina
            Reporter:
            Andrew Shevchuk
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: