Re: "IN" SQL Clause in Couch View

2010-09-16 Thread Jarrod Roberson
On Wed, Sep 15, 2010 at 5:30 AM, Ido Ran wrote: > I don't know the keywords apriori so I can't create view for each keyword. > Also it sound like very complicated solution to what look like simple > problem. > > I've found this post > > http://www.vertigrated.com/blog/2010/04/where-clauses-like-s

Re: "IN" SQL Clause in Couch View

2010-09-15 Thread Nils Breunese
Ido Ran wrote: > I don't know the keywords apriori so I can't create view for each keyword. > Also it sound like very complicated solution to what look like simple > problem. You don't need to create a view for each keyword. Just create a view that emits for every word. Use a map function like

Re: "IN" SQL Clause in Couch View

2010-09-15 Thread Ido Ran
> > > Nils. > > ____________ > > Van: Ido Ran [ido@gmail.com] > > Verzonden: dinsdag 14 september 2010 22:05 > > Aan: CouchDB MailingList > > Onderwerp: "IN" SQL Clause in Couch View > > > > Hi, &

Re: "IN" SQL Clause in Couch View

2010-09-14 Thread Norman Barker
nden: dinsdag 14 september 2010 22:05 > Aan: CouchDB MailingList > Onderwerp: "IN" SQL Clause in Couch View > > Hi, > I am trying to create a view like the one exist in taskr application called > tag-cloud/ > I want to be able to retrieve all documents which contain all th

RE: "IN" SQL Clause in Couch View

2010-09-14 Thread Nils Breunese
Van: Ido Ran [ido@gmail.com] Verzonden: dinsdag 14 september 2010 22:05 Aan: CouchDB MailingList Onderwerp: "IN" SQL Clause in Couch View Hi, I am trying to create a view like the one exist in taskr application called tag-cloud/ I want to be able to retrieve all documen

"IN" SQL Clause in Couch View

2010-09-14 Thread Ido Ran
Hi, I am trying to create a view like the one exist in taskr application called tag-cloud/ I want to be able to retrieve all documents which contain all the keywords I specify. For example: { _id: "A", keywords: ["Dog", "Cat", "Blue"] } { _id: "B", keywords: ["Dog", "Tree", "Blue"] } Now,