【发布时间】:2018-04-06 23:32:00
【问题描述】:
我在 MongoDB 中存储了 10 万条推文。每条推文的存储方式如下:
{
"_id" : "123456789",
"user_screenName " : "john doe",
"text" : "some tweet"
}
我找到了http://bdadam.com/blog/finding-a-random-document-in-mongodb.html 和MongoDB: how to find 10 random document in a collection of 100?,但不确定这是否正是我需要的。
我想获得 200 个随机的 text 字段,以便进行分析。
【问题讨论】:
标签: mongodb