Skip to content

Instantly share code, notes, and snippets.

Created December 12, 2012 01:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/4264089 to your computer and use it in GitHub Desktop.
function (doc, meta) {
if(doc.type != null && doc.name != null && doc.abv != null)
{
if(doc.type == "beer")
{
emit(doc.abv, doc.name);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment