【发布时间】:2012-01-22 15:54:21
【问题描述】:
假设我确实有这样的文档:
{
_id: "cow",
comments: [
{user: "karl", comment: "I like cows.", at: /*a date*/},
{user: "harry", comment: "Cows are the best.", at: /*a date*/}
]
}
现在我想收集"karl" 留在我的数据库中的所有 cmets。或者只是某个日期的那些。 "comments" 已编入索引,如何查询?
【问题讨论】: