couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nils Breunese <>
Subject RE: ANDing of tags
Date Fri, 19 Mar 2010 23:32:57 GMT
You might want to take a look at couchdb-lucene when moving into territory like that:

Van: Eric Jonas []
Verzonden: zaterdag 20 maart 2010 0:28
Onderwerp: ANDing of tags

I know this question has come up before, and the answer has often been
"do multiple queries and do the intersection client-side". But there
were also discussions about possibly adding this functionality to

I have a document archive with up to 100k documents, each of which has
a 'tags' field consisting of a list of string-based tags like so:

{ tags: ['hello', 'world', 'testing']}

I would like to let my users search for documents containing all of
some subset of the tags. For example, "all documents containing the
tag 'hello' and 'world'". It's the logical _and_ there that continues
to vex. Doing the conjunction on the client would be problematic for
very popular tags, potentially necessitating the download of tens of
thousands of documents.

Is there any reasonable way to appropriately create a view to make
this operation less painful?


De informatie vervat in deze  e-mail en meegezonden bijlagen is uitsluitend bedoeld voor gebruik
door de geadresseerde en kan vertrouwelijke informatie bevatten. Openbaarmaking, vermenigvuldiging,
verspreiding en/of verstrekking van deze informatie aan derden is voorbehouden aan geadresseerde.
De VPRO staat niet in voor de juiste en volledige overbrenging van de inhoud van een verzonden
e-mail, noch voor tijdige ontvangst daarvan.

View raw message