You will have to have the "pinned" field in each doc. Then you can easily use that in a replication filter. You cannot access other docs when filtering.
On Sun, Jun 17, 2012 at 3:31 PM, bsquared <bwcod...@gmail.com> wrote: > Hello, > > I am wondering how to implement a filtered replication with a blacklist > of sorts. > > > (C..?) <--> (B?) <--> (A) > > Where (A) is a local couchapp and (B) is an optional duplicate on the > Internet. A and B replicate with one or more document stores (C..Z). I > want to be able to ignore selected documents from the document > stores. The net affect is that user of (A) is deleting the document from > their replicated copies, but it still exists on the original document > store. > > The idea that comes to mind for me is to have a design doc hold some > document metadata that I could use in a filter. > > my_doc_metadata : [ > {id: doc_1, state:hidden > {id: doc_2, state:pinned}, ...] > > This doc would be replicated between (A) and (B) only. > > Is this possible? If so how could this be implemented in a filter? > > Any alternatives come to mind? > > Thank you. > > -- > Regards, > Brian > >