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]>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]. > 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/CACSSHCHOYvORT60qTN1N-NoDL1ubUc9X%3Dhxq%3DAnHWG7_yqYpbg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
