Is it ok that sync gateway can't see _design doc?Why i can't use filter?
how to implement sync function when we want to chose chanel by date. For example we want to download to device data that was created in last month? Document and sync function will not change, but after some period of time document should be move from current_doc_channel to old_doc_channel? Of course user should only get document from current_doc_channel.
How i suppose to change this code to connect to particular channel?
To replicate channels to Couchbase Lite, you configure the replication to use a filter named
sync_gateway/bychannel
with a filter parameter namedchannels
. The value of thechannels
parameter is a comma-separated list of channels to fetch. The replication from Sync Gateway now pulls only documents tagged with those channels.
When I call pull replication it doesnt work. Push replication works without any problems. Any idea?
Sorry. I have incorrect configuration on gateway. All the doc was created by GUEST because GUEST user was enable. Sync function puts doc in userName channels. When i wanted to pull doc it was nothing to download for GUEST user. That's why push works and pull wasn't.