CouchDB Map/Reduce view query from Ektorp
问题 I'm trying to execute a query from java against a Map/Reduce view I have created on the CouchDB. My map function looks like the following: function(doc) { if(doc.type == 'SPECIFIC_DOC_TYPE_NAME' && doc.userID){ for(var g in doc.groupList){ emit([doc.userID,doc.groupList[g].name],1); } } } and Reduce function: function (key, values, rereduce) { return sum(values); } The view seems to be working when executed from the Futon interface (without keys specified though). What I'm trying to do is to