{ "views" : { "foo" : { "map" : "function(doc) {if(doc.date && doc.title) {emit(doc.date, doc.title);}}" } } }