view_by :most_recent, :map => "function(doc) {emit('date', Date.parse
(doc.created_at));}", :reduce => "function(keys, values, rereduce)
{var rv = null;for (i=0; i<values.length; ++i) {var value = values
[i];rv = Math.max(value, rv || value);}return rv;}"
Thanks Matt
On Dec 7, 9:05 pm, Matt Aimonetti <
mattaimone...@gmail.com> wrote:
> how do you call your reduce function?
>
> - Matt
>
>
>
> On Mon, Dec 7, 2009 at 12:54 PM, John Griffin <
joh...@gmail.com> wrote:
> > Every time I attempt to use a reduce in my model couch rest seems to
> > insert "couchrest-defaults": { "reduce": false } into my view. Any
> > ideas what this means?
>
> > Thanks for your help!
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "CouchRest" group.
> > To post to this group, send email to
couc...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
couchrest+...@googlegroups.com<couchrest%2Bunsubscribe@googlegroups .com>
> > .