update files views (doc id will now just be the full path + filename)

This commit is contained in:
Gered 2013-05-21 19:25:40 -04:00
parent 6bd4bc8252
commit 0e68ce12b1

View file

@ -3,7 +3,10 @@
"language": "javascript",
"views": {
"listAll": {
"map": "function(doc) {\n var fullFilename = doc.path + '/' + doc.filename;\n emit(fullFilename, doc);\n}"
"map": "function(doc) {\n emit(doc._id, doc);\n}"
},
"listPublished": {
"map": "function(doc) {\n if (doc.published === true)\n emit(doc._id, doc);\n}"
}
}
}