Has anyone successfully used a filter with the _changes feed of local couchbase lite in the following fashion?
I'm on phonegap, and constantly getting a 404 error with the following document in place.
{
filters: {
by_id: function(doc, req) {
return true;
}.toString()
}
,views: {
profiles: {
map: function(doc) {
if (doc.roles.indexOf('profile') != -1) {
emit(doc._id, doc['first name']);
}
}.toString()
}
}
}
I've intentionally gutted out the filter function to just return true for the sake of testing the bare minimum.
The views, by the way, works just fine.
slim