注:作者使用的MongoDB为2.4.7版本。
单词计数示例:
插入用于单词计数的数据:
db.data.insert({sentence:’Consider the following map-reduce operations on a collection orders that contains documents of the following prototype’})
db.data.insert({sentence:’I get the following error when I follow the code found in this link’})