Looks fine in the view, but cant export it with the curl command :( 2015-02-10 23:48 GMT+01:00 Alexander Shorin <[email protected]>:
> Use builtin reduce function _count: > > http://docs.couchdb.org/en/latest/couchapp/ddocs.html#builtin-reduce-functions > -- > ,,,^..^,,, > > > On Mon, Feb 9, 2015 at 6:22 PM, Ayhan Kesenci > <[email protected]> wrote: > > I would like to reduce a view to get the sum of some ids I have this view > > > > function(doc) { > > > > > emit([doc.retweeted_status.user.id.toString(),doc.retweeted_status.user.lang.toString(),doc.retweeted_status.id.toString()]); > > } > > > > > > > > and would reduce to get the sum of doc_retweeted_status.id.toString() > > > > > > and try this to reduce, to get the value how many times a id exist in my > > couchdb > > > > Is it possible to use it like I imagine ? > > > > thank you guys >
