How to replicate only the intersection of certain channels in Couchbase Mobile

Consider the following:

I have four channels in my application: A, B, C, D. Some application users are only interested in documents contained in both channels A and B only. Also can be expressed as the intersection of documents contained in channels A and B (i.e. A ∩ B). Others may be interested in a different combination like: (A ∩ B ∩ D).

Is there a way to do this with channels or perhaps some other feature I have missed in Couchbase?


I posted this on StackOverflow as well.

…and also on the Google group, where I just answered it.