function map(doc){ if(doc.username && doc.presentation){ emit(doc._id, doc); } }