Filtered PullReplication on a channel

30 views
Skip to first unread message

Nitz Malikarjun

unread,
Apr 24, 2015, 12:16:40 PM4/24/15
to mobile-c...@googlegroups.com
Hi Folks,

I have android LITE with below pull setup.

Replication pullReplication = database.createPullReplication(syncUrl);
pullReplication.setContinuous(true);
Authenticator auth = new BasicAuthenticator(user, "password");
pullReplication.setAuthenticator(auth);
userChannel = Arrays.asList("user1");
pullReplication.setChannels(userChannel);
pullReplication.setFilter("designdoc/itemFilter");
Map params = new HashMap();
params.put("searchid", "item");
pullReplication.setFilterParams(params);
pullReplication.start();
pullReplication.addChangeListener(this);

How do i deal with filters if i am using couchbase server.?

Channel and filter can work together?

Basically I want to pull some filtered docs which belongs to a channel.

Have created views and done some emit http://docs.couchbase.com/admin/admin/UI/ui-views-editor.html.

Is the the way the filters work if i am not using couchDB?if so how to set filters in lite.

Something similar to https://github.com/couchbase/couchbase-lite-android/issues/200

Little puzzled help me out.

Thanks
Ntihin

Traun Leyden

unread,
Apr 24, 2015, 12:19:09 PM4/24/15
to mobile-c...@googlegroups.com
Nitihin,


Please just post it once, since otherwise it will lead to confusion and extra work.

(to be fair, I realize it's confusing that we have multiple forums.. )




--
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 mobile-couchba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/d90613dc-c3a8-4823-a25c-e7f03c56ce08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages