Ignore:
Timestamp:
07/25/12 10:56:00 (13 years ago)
Author:
jkraaijeveld
Message:

Question editor now loads topic as well. Improved topic auto-completer with a new view which only sends the topic names from the database.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/config/docs.json

    r362 r375  
    7676                "map": "function(doc){ if ( doc.type === 'Question' ) { for (var i = 0; i < doc.categories.length; i++) { emit([doc.categories[i],doc.topic],1); } } }",
    7777                "reduce": "function(keys,values) { return sum(values); }"
     78            },
     79            "topics": {
     80                "map": "function(doc){ if ( doc.type === 'Question' ) { emit(doc.topic, 1); } }",
     81                "reduce":   "function(keys, values) { return null; }"
    7882            }
    7983        }
Note: See TracChangeset for help on using the changeset viewer.