update files views (doc id will now just be the full path + filename)
This commit is contained in:
parent
6bd4bc8252
commit
0e68ce12b1
|
@ -3,7 +3,10 @@
|
||||||
"language": "javascript",
|
"language": "javascript",
|
||||||
"views": {
|
"views": {
|
||||||
"listAll": {
|
"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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Reference in a new issue