Hi Traun. In this case, one filters restrictions a set of documents from being replicated and second filter restricts second set of documents. Can it not be the case that second filter allows the documents to replicate which were restricted by first filter. And in this way, this replication rule will not work.
On Wednesday, March 12, 2014 12:28:07 AM UTC+5:30, Traun Leyden wrote: > > Yeah, on first glance, this should work. > > Are you running into specific issues? > > > On Wed, Mar 5, 2014 at 11:45 PM, Pankaj Jakhar > <[email protected]<javascript:> > > wrote: > >> I want to write separate filter in each design document in couchDB. And >> then I want to invoke each filter on the basis of PullReplication instance >> as:| >> >> Replication pullReplication1 = mDatabaseLocal >> .createPullReplication(syncUrl); >> pullReplication1.setContinuous(true); >> >> pullReplication1.setFilter("filter1/docFilter1"); >> // map.clear(); >> // map.put("text", "e"); >> Log.d(TAG, "Pull replication initiated."); >> pullReplication1.setFilterParams(map); >> >> pullReplication.1start(); >> >> pullReplication1.addChangeListener(this); >> Replication pullReplication2 = mDatabaseLocal >> .createPullReplication(syncUrl); >> pullReplication2.setContinuous(true); >> >> pullReplication2.setFilter("filter2/docFilter2"); >> // map.clear(); >> // map.put("text", "e"); >> Log.d(TAG, "Pull replication initiated."); >> pullReplication2.setFilterParams(map); >> >> pullReplication2.start(); >> >> pullReplication2.addChangeListener(this); >> Replication pullReplication3 = mDatabaseLocal >> .createPullReplication(syncUrl); >> pullReplication3.setContinuous(true); >> >> pullReplication3.setFilter("filter3/docFilter3"); >> // map.clear(); >> // map.put("text", "e"); >> Log.d(TAG, "Pull replication initiated."); >> pullReplication3.setFilterParams(map); >> >> pullReplication3.start(); >> >> pullReplication3.addChangeListener(this); >> >> Is it possible to do so in CouchbaseLite based Android application? - >> specifying multiple filters but one filter per design document and then >> creating PullReplication for each filter. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Couchbase Mobile" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/mobile-couchbase/fecb98e8-8058-4695-91c0-60e4004daf3a%40googlegroups.com<https://groups.google.com/d/msgid/mobile-couchbase/fecb98e8-8058-4695-91c0-60e4004daf3a%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/b8bd22d2-e33a-469a-b0e7-658d07efb23d%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
