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<String, Object> params = new HashMap<String, Object>();
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