MongoDB:如何在对象结构深处获取具有特定属性的文档?

How can I get MongoDB-document with "test": NumberInt(1000) property from RockMongo and from PHP?

I tried something alike to {"items": {"test": 1000}}, but

No records is found.

Sample of Mongo collection:

{
   "_id": ObjectId("xxx"),
   "items": {
     "0": {
       "0": {
         "test": NumberInt(1000)
        }
      },
       "1": {
         "test": NumberInt(2000)
        },
    },
},
{
   "_id": ObjectId("yyy"),
   "items": {
     "0": {
       "0": {
         "test": NumberInt(3000)
        }
      },
       "1": {
         "test": NumberInt(4000)
        },
    }
}

Try this

db.coll.find( { 'items.test': 1000 } )

and assure that items is an array and not an object.