incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: CouchDB: Using "OR" in Queries
Date Fri, 11 Oct 2013 18:05:55 GMT
That'll work too, though keys for GET is fairly recent iirc, you might have to POST for older
versions.

"OR" is easy enough, it's "AND" that's tricky (and why I wrote couchdb-luceneā€¦)

B.

On 11 Oct 2013, at 14:09, svilen <az@svilendobrev.com> wrote:

> wasn't it
> ...?keys=[list]
> 
> 
> n Fri, 11 Oct 2013 14:56:57 -0300
> Hank Knight <hknight555@gmail.com> wrote:
> 
>> This allows my to find all results where the key equals "GOLD":
>> http://example.com/abc/_design/iws/_view/q?key=%GOLD%22
>> 
>> This allows my to find all results where the key equals "SILVER":
>> http://example.com/abc/_design/iws/_view/q?key=%SILVER%22
>> 
>> This allows my to find all results where the key equals "BRONZE":
>> http://example.com/abc/_design/iws/_view/q?key=%BRONZE%22
>> 
>> How can I get results with a single query where the key equals GOLD or
>> SILVER but not BRONZE?


Mime
View raw message