Skip to content

Instantly share code, notes, and snippets.

Created Jun 26, 2012
What would you like to do?
Map Reduce
var map = function(){
emit(this.tag, {tag_date: this.tag_date, count:this.count});
var reduce = function(key, values){
var obj = {value: []};
for(var i in values){
obj.value.push({tag_date:values[i].tag_date, count:values[i].count});
return obj;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment