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

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

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Duplicate
    • 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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: