Details
-
Question
-
Resolution: Done
-
Major - P3
-
None
-
1.2.1
-
None
-
Mac OS X, mongo command line
Description
I may be missing something but am thinking that the test below points out a bug, but I maybe be missing something
set up collection:-
db.test.save({ "_id" : "IBM.N|00001264779918428889", "DESCRIPTION" :
}
db.test.save({ "_id" : "VOD.N|00001264779918433344", "COMPANYNAME" :
})
db.test.save({ "_id" : "IBM.N|00001264779918437075", "DESCRIPTION" :
})
db.test.save({ "_id" : "VOD.N|00001264779918441426", "COMPANYNAME" :
})
I am expecting that
db.test.find().min(
{"_id":"IBM.N|00000000000000000000"}).max(
{"_id":"IBM.N|99999999999999999999"});
should return
{ "_id" : "IBM.N|00001264779918428889", "DESCRIPTION" :
}
{ "_id" : "IBM.N|00001264779918437075", "DESCRIPTION" :
}
and not
error: { "$err" : "no index found for specified keyPattern: {}" }