Hi all,
I have a problem with pull filter. I use sync gateway to replicate data and
i want to limit download of data to device.
I created _designe/mydoc on server side with filter function:
{
_id: "_design/mydoc"
filters: {
myfilter: "function(doc) {return true;}"
}
}
when app runs replication (gateway)
http://host:4984/appName/_changes?feed=longpoll&limit=50&heartbeat=300000&filter=mydoc/myfilter
i receive
{
error: "Bad Request"
reason: "Unknown filter; try sync_gateway/bychannel"
}
When i call [GET] (gateway) http://host:4984/appName/_design/mydoc i
receive
{
error: "not_found"
reason: "unknown URL"
}
When i call [GET] (database) http://host:8092/appName/_design/mydoc i
receive:
{
_id: "_design/mydoc"
filters: {
myfilter: "function(doc) {return true;}"
}
}
Is it ok that sync gateway can't see _design doc?
Why i can't use filter?
How should I create _desing doc on server side? buy "create document" on
admin panel or maybe in other way?
Regards,
Adam.
--
You received this message because you are subscribed to the Google Groups
"Couchbase" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.