2014-05-10 180 views

回答

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

是否有文档的链接?我还没发现。 – ashim

+0

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