couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stanley Iriele <siriele...@gmail.com>
Subject Re: CouchDB: Using "OR" in Queries
Date Fri, 11 Oct 2013 18:06:24 GMT
Couldn't you use an http Post with the keys array field for that?

{keys: [SILVER, GOLD]}
On Oct 11, 2013 11:03 AM, "Robert Newson" <rnewson@apache.org> wrote:

> http://example.com/abc/_design/iws/_view/q?startkey="GOLD"&endkey="SILVER"
>
> This assumes you don't have other key values inbetween.
>
> B.
>
>
> On 11 Oct 2013, at 13:56, 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message