2014-05-10 100 views

回答

1
db.yourCollection.ensureIndex({"fruit.name":1}) 
+0

是否有文檔的鏈接?我還沒發現。 – ashim

+0

http://docs.mongodb.org/manual/core/index-multikey/#index-arrays-with-embedded-documents –