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

query in collection which has different type filed, just return one same type res

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0
    • Component/s: Querying
    • None
    • ALL

      Google Group URL:https://groups.google.com/forum/#!topic/mongodb-dev/bjFGvzB8OAE

      rs0:PRIMARY> db.a.find().sort({_id:1})
      { "_id" : 1 }
      { "_id" : 2 }
      { "_id" : 3 }
      { "_id" : "1" }
      { "_id" : "10" }
      { "_id" : "100" }
      { "_id" : "2" }
      { "_id" : "20" }
      { "_id" : "3" }
      { "_id" : { "nam" : "1234" } }
      { "_id" : { "name" : "123" } }
      { "_id" : { "name" : "1234" } }
      { "_id" : { "name2" : "1234" } }
      
      
      rs0:PRIMARY> db.a.find({_id:{$lt:MaxKey, $gt:"2"}})
      { "_id" : "20" }
      { "_id" : "3" }
      
      

            Assignee:
            david.storch@mongodb.com David Storch
            Reporter:
            ych.tiger@gmail.com YANG Chenghu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: