The _id of the document is "_design/utils"

On Tuesday, June 3, 2014 11:26:50 PM UTC-4, Seung Chan Lim wrote:
>
> 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/f5c59bce-8d63-4820-ae26-7cd6369a4b12%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to