You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
I'm trying to setup a pull replication from a Cloudant db to local. If I remove the filter it does start to sync the (rather large) dataset. However with the filter I get no data.
The design document id is _design/words and the filter function looks like:
wordStore.manager.server.post_replicate({body: {source: databaseConstants.remoteURL,target: databaseConstants.dbName,continuous: true,// selector: { // selector is preferred in Cloudant// category: 'free'// },filter: "words/by_category",query_params: {"category": "free"}}})
I've created a similar view which works but a) I don't think you can replicate from a view and b) filters are a lot more flexible and simpler to write.
I also tried using Cloudant's selector property but assume that is not supported in this API?