Re: getting unique set of document id's

2009-07-07 Thread Brian Candler
On Sun, Jul 05, 2009 at 03:18:33PM -0500, Ross Bates wrote: Hi Paul - thank you for the pointers. Something I'm unclear on though... using a sum in the reduce returns something like this for all the tags: foo, 3 bar, 5 baz, 7 When I use the multi-key fetch against the view it doesn't

Re: getting unique set of document id's

2009-07-07 Thread Ross Bates
Thank you for the follow up Brian. After looking at your examples I think I understand where I wasn't clear in how I planned to use the POST {keys: [foo, bar]} statement. What you and Paul suggested is the fastest route to getting documents that are tagged with both foo AND bar, but for my search

Re: getting unique set of document id's

2009-07-07 Thread Robert Newson
Your goal is achievable with couchdb-lucene (http://github.com/rnewson/couchdb-lucene), fwiw. That is, you would add all of the tags for each document to a full-text view with; { _id:lucene, fulltext: { tags: { index:function(doc) { var ret=new Document(); ret.add(doc.tags);

Re: getting unique set of document id's

2009-07-07 Thread Brian Candler
On Tue, Jul 07, 2009 at 01:08:14PM -0500, Ross Bates wrote: Thank you for the follow up Brian. After looking at your examples I think I understand where I wasn't clear in how I planned to use the POST {keys: [foo, bar]} statement. What you and Paul suggested is the fastest route to

Re: getting unique set of document id's

2009-07-04 Thread Paul Davis
On Sat, Jul 4, 2009 at 2:48 PM, Ross Batesrba...@gmail.com wrote: Hi All - finally got up an running with 0.9.0 and have been experimenting with the POST {keys: [key1, key2, ...]} feature and have a question Take the typical example of a set of blog posts which can be tagged with 1...n tags.