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
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
>
> > 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,
&
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
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
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,