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

$in and regular expressions

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 1.3.4
    • Querying
    • None

    Description

      Do you plan to support regular expressions in $in queries ?

      http://pastie.org/636463

      > j =

      { name: "mongo"}

      ;

      {"name" : "mongo"}

      > db.things.save(j);
      > db.things.find(

      {name: /.*mongo.*/i}

      );

      {"_id" : ObjectId( "4ac3312ffce86d635643cb7c") , "name" : "mongo"}

      > db.things.find({name:{$in: [/.*mongo.*/i]}});
      >

      Attachments

        Activity

          People

            aaron Aaron Staple
            nicolas_ Nicolas Fouché
            Votes:
            6 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: