two view questions: group=true, inverted indices

2010-02-07 Thread Harold Cooper
Hi there, I'm new to CouchDB and have two questions about the use of mapreduce in views. 1. As far as I can tell, even when I pass group=true to a view, reduce(keys, values) is still passed different keys, e.g. keys = [[a, 551a50e574ccd439af28428db2401ab4], [b,

Re: two view questions: group=true, inverted indices

2010-02-07 Thread Paul Davis
On Sun, Feb 7, 2010 at 6:15 PM, Harold Cooper har...@mit.edu wrote: Hi there, I'm new to CouchDB and have two questions about the use of mapreduce in views. 1. As far as I can tell, even when I pass group=true to a view, reduce(keys, values) is still passed different keys, e.g. keys =

Re: two view questions: group=true, inverted indices

2010-02-07 Thread Robert Newson
1) it's reduce(key, values, rereduce). The method should be called with 1 or more values for the same key, which you can then reduce to a summary value. It's called 'reduce' because the result must be smaller than the input. Building a result as large as the input (in fact, as large as the sum of

Re: two view questions: group=true, inverted indices

2010-02-07 Thread Harold Cooper
Haha, thanks for the info. I'm sure couchdb-lucene is the best way to go for full text search; I should've simply said that I think mapreduce can be fun and elegant when it fits really well, but I look forward to trying out couchdb-lucene and I expect I'll enjoy using it as well. As for question

Upgrading an existing Couch's authentication

2010-02-07 Thread Aaron Quint
Hey All Once again, props to @jchris for getting the authentication up to snuff. I was able to get a simple authentication system built for my little couchapp Swinger: http://github.com/quirkey/swinger Its just so awesome that I can finally have a _fully_ functioning app with user accounts,