Changeset 501 for Dev/trunk/src/server/config/couchdb-design-docs.js
- Timestamp:
- 03/10/14 17:10:16 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Dev/trunk/src/server/config/couchdb-design-docs.js
r492 r501 96 96 reduce: function(key, values, rereduce) { return sum(values); } 97 97 }, 98 by_code: {98 all_by_code: { 99 99 map: function(doc){ 100 100 if ( doc.type !== 'Question' ) { return; } 101 emit(doc.code,doc); 102 } 103 }, 104 published_by_code: { 105 map: function(doc){ 106 if ( doc.type !== 'Question' || !doc.publicationDate ) { return; } 101 107 emit(doc.code,doc); 102 108 }
Note: See TracChangeset
for help on using the changeset viewer.