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

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

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Querying
    • Labels:
      None

      Description

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

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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: