You might want to take a look at couchdb-lucene when moving into territory like that: http://github.com/rnewson/couchdb-lucene
Nils. ________________________________________ Van: Eric Jonas [[email protected]] Verzonden: zaterdag 20 maart 2010 0:28 Aan: [email protected] 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 couchdb. 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? Thanks! ...Eric 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.
