couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Candler <B.Cand...@pobox.com>
Subject Re: view key boolean operator
Date Sun, 01 Nov 2009 16:42:33 GMT
On Sat, Oct 31, 2009 at 04:21:16PM -0600, Norman Barker wrote:
> Hi,
> 
> is there a way to specify a key for a view such that the view returns
> all results that don't have that key?
> 
> e.g. myview?key="~a", returns all documents with keys equal to b, c, d, ...

If every document emits at least one key, then you could query twice: once
for key < a, and once for key > a.

You should be able to do this using some combination of startkey, endkey,
desc and/or inclusive_end.

Mime
View raw message