Has anyone successfully used a filter with the _changes feed of local 
couchbase lite in the following fashion?

http://lite.couchbase./db/_changes?feed=continuous&include_docs=true&filter=utils/by_id

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

-- 
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/b8e5aa0a-ed1f-4410-8500-2d968d829a9d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to