Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
3.2.7-windows
*Location*: https://docs.mongodb.com/manual/core/index-single/
*User-Agent*: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
*Referrer*: https://docs.mongodb.com/manual/
*Screen Resolution*: 1920 x 1080
Description
If I do this:
db.records.insert({
"_id": ObjectId("570c04a4ad233577f97dc459"),
"score": 1034,
"location":
})
after this step is done, I do this to create an index:
db.records.createIndex(
)
now when I query this collection, I find this command cannot find any document:
db.records.find( { location:
} )
but, this command can do it:
db.records.find( { location:
} )