Tutorial:Aggregation

Aggregation
Aggregation FrameWork Tool



Map Reduce
Map Reduce is a cool function,this tool is support the map reduce via GUI
To open the map-reduce form,please select a data treenode,then click right.



In the map-reduce,you will see a sample for map javascript and reduce javascript.It is only for beginer.



You can load a javascript form system.js collection by select the jsname at listbox.Or you can save your javascript to system.js collection.
When the javascript is ready,click run to do map-reduce.



If the socketTimeout is too short to complete the map-reduce,there will be a exception happens.Please modify the socketTimeout at connection manager form

Others
Count:
This tools also support the Aggregation:Count,Distinct,Group,(All Aggregation is support query filter.The next section will introduce query filter)
Count will give you a count result of collection.The count result may be different ,when a datafilter is enable or not.




Distinct:
You need to pick a distinct field first



Click "Run",the result is display by a messagebox:



Group:
Please see the reference first: Refrence of Aggregation at mongodb.org
The Gui of group is look like this:



If everything is right,the result looks like this:(Don't forget to add init fields...if some fields is not need any more,leave fieldname with space)




Text Search
如果你连接的MongoDB的数据库是2.4及其以上,同时服务器端允许Text Search功能的话。你可以使用本工具进行Text Search。
MongoDB的Text Search 功能是针对拉丁语系的,所以,请不要尝试检索中文的关键字。

Text Search