On Sun, May 18, 2008 at 10:14 PM, Chris Anderson <[EMAIL PROTECTED]> wrote: > If you're dying to play with reduce, Couchrest (Ruby library) supports > it (for temp views).
In fact I was dying to play with custom queries, but if I can play with reduce instead... Sounds fair to me ;-) > Check out or download from Github: > > http://github.com/jchris/couchrest/tree/master > > Not well documented, but there is an example at > > http://github.com/jchris/couchrest/tree/master/spec/database_spec.rb > > line 33. I didn't use your library directly, but reading its source turned out to be very helpful. I was able to figure out that to get the map-reduce behavior you have to pass the temporary view an object with the appropriate functions in slots "map" and "reduce". Where can I find documentation for things like that? Cheers, -- Richard -- http://szopa.tasak.gda.pl/
