Ignore:
Timestamp:
03/10/14 17:10:16 (11 years ago)
Author:
hendrikvanantwerpen
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/server/config/couchdb-design-docs.js

    r492 r501  
    9696                reduce: function(key, values, rereduce) { return sum(values); }
    9797            },
    98             by_code: {
     98            all_by_code: {
    9999                map: function(doc){
    100100                    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; }
    101107                    emit(doc.code,doc);
    102108                }
Note: See TracChangeset for help on using the changeset viewer.