Skip to content

Instantly share code, notes, and snippets.

@drsm79
Created August 24, 2012 10:26
Show Gist options
  • Save drsm79/3448899 to your computer and use it in GitHub Desktop.
Save drsm79/3448899 to your computer and use it in GitHub Desktop.
map:
function(doc) {
for (key in doc){
emit(key, 1);
}
}
reduce:
_count
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment