couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Unkovsky <oil.cray...@gmail.com>
Subject Re: I'm going mad with reduce
Date Sat, 15 Aug 2009 11:04:49 GMT
well, according to your document structure not doc.Standard but
doc.Standard.Standard:

map:function(doc) {
  if(doc.Standard)
    emit(doc.Standard.Standard,null);
},
reduce:function(kk,vv,rf){
  return null;
}

Hope that helps.

Mime
View raw message