I have a list of small JSON documents in the format:
{ "name":"Kate", "event":"read" }, { "name":"Jon", "event":"delete" },...
My map function is as follows:
function(doc, meta){ emit(doc.event, null); }
As a result, I get a list of all events, including duplicates. How to reduce the result set to individual values ββonly?
thanks
source share