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

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

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Duplicate
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Querying
    • None

    Description

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

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

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: