Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor - P4 Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3.4
    • Component/s: Querying
    • Labels:
      None
    • # Replies:
      3
    • Last comment by Customer:
      false

      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]}});
      >

        Activity

        Hide
        auto
        added a comment -

        Author:

        {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

        Message: SERVER-322 implement $in with regex
        http://github.com/mongodb/mongo/commit/6d095cf3574b7791155b22c5c9f4f13c464df9c8

        Show
        auto
        added a comment - Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'} Message: SERVER-322 implement $in with regex http://github.com/mongodb/mongo/commit/6d095cf3574b7791155b22c5c9f4f13c464df9c8
        Hide
        auto
        added a comment -

        Author:

        {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

        Message: SERVER-322 $nin and regex
        http://github.com/mongodb/mongo/commit/6c7dc2b0f8831fac6621f125889d873241588b02

        Show
        auto
        added a comment - Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'} Message: SERVER-322 $nin and regex http://github.com/mongodb/mongo/commit/6c7dc2b0f8831fac6621f125889d873241588b02
        Hide
        auto
        added a comment -

        Author:

        {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'}

        Message: SERVER-322 cleanup
        http://github.com/mongodb/mongo/commit/6820535ea7661e9e7cd49ef7e1edcbc050f0f1bf

        Show
        auto
        added a comment - Author: {'login': 'astaple', 'name': 'Aaron', 'email': 'aaron@10gen.com'} Message: SERVER-322 cleanup http://github.com/mongodb/mongo/commit/6820535ea7661e9e7cd49ef7e1edcbc050f0f1bf

          People

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

            Dates

            • Created:
              Updated:
              Resolved:
              Days since reply:
              4 years, 7 weeks ago
              Date of 1st Reply: