Skip to content

Instantly share code, notes, and snippets.

@ryankirkman
Created April 13, 2012 22:45
Show Gist options
  • Save ryankirkman/2380616 to your computer and use it in GitHub Desktop.
Save ryankirkman/2380616 to your computer and use it in GitHub Desktop.
byDateGroup: {
map: function(doc) {
if (doc.date && (doc.group == "group1" || doc.group == "group2")) {
emit(doc.date, null);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment