couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michal Frackowiak <mich...@wikidot.com>
Subject Re: playing with tags
Date Thu, 12 Feb 2009 15:22:05 GMT
I think you could create a separate view for selecting articles by  
multiple tags.

1. Pass keys as a single string, e.g. ...?key="python,couchdb"
2. Explode the string in the view map function and return doc only if  
all tags match.

Would it work?

Michal


On Feb 12, 2009, at 12:22 PM, Nicolas Clairon wrote:

> Thanks for your quick response.
>
> the line:
>
> curl -X POST http://localhost:5984/blog/_view/articles/by_tags -d
> '{"keys":["python", "couchdb"]}'
>
> gives me all the articles tagged with "python" *or* "couchdb"... but
> how can I handle this to have only
> the articles tagged with "python" *and* "couchdb" in one shot ?

---------------
Michal Frackowiak
http://michalfrackowiak.com





Mime
View raw message