couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Couchdb Wiki] Update of "IsoFormattedDateAsDocId" by DougShawhan
Date Fri, 25 Feb 2011 18:36:39 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "IsoFormattedDateAsDocId" page has been changed by DougShawhan.
http://wiki.apache.org/couchdb/IsoFormattedDateAsDocId?action=diff&rev1=7&rev2=8

--------------------------------------------------

  {{{#!javascript
  {
     "sum_by_day": {
-        "map": "function(doc) {\n  var dt = new Date(doc._id);\n  emit(dt.getDate(), 1);\n}",
+        "map": "function(doc) {\n  var dt = new Date(doc._id);\n  emit(dt.getDate() doc.widget,
1);\n}",
         "reduce": "function(keys, values, rereduce) {\n   return sum(values)\n}"
     }
  }

Mime
View raw message