Skip to content

Instantly share code, notes, and snippets.

@till
Created September 1, 2010 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save till/560685 to your computer and use it in GitHub Desktop.
Save till/560685 to your computer and use it in GitHub Desktop.
/*
inside the view
*/
if (typeof doc.settings != undefined) {
if (typeof doc.settings.research != undefined) {
if (doc.settings.research == 'disallow') {
return;
}
}
}
if (typeof doc.date == undefined) {
return;
}
// 2010-03-09 16:21:54
if (doc.date.substr(0, 4) != "2010") {
return;
}
emit(doc._id, null);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment