The underlying problem - let\'s say my documents have \"categories\" and timestamps. If I want all documents in the \"foo\" category that have a t
Your probably better off just doing two queries. CouchDB can handle multiple simultaneous queries pretty well so spin off several processes/threads and query for foo and bar docs seperately.
CouchDB does not currently support multiple range queries. ORing and ANDing keys is pretty much not doable in one query.