You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by Apache Wiki <wi...@apache.org> on 2010/10/23 02:18:35 UTC

[Couchdb Wiki] Update of "Replication" by RandallLeeds

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Couchdb Wiki" for change notification.

The "Replication" page has been changed by RandallLeeds.
http://wiki.apache.org/couchdb/Replication?action=diff&rev1=27&rev2=28

--------------------------------------------------

  {"source":"http://example.org/example-database","target":"http://admin:password@127.0.0.1:5984/example-database", "continuous":true, "cancel":true}
  }}}
  === Filtered Replication ===
- Sometimes you don't want to transfer all documents from source to target. You can include one or more filter functions in your design document and then tell the replicator to use them.
+ Sometimes you don't want to transfer all documents from source to target. You can include one or more filter functions in a design document on the source and then tell the replicator to use them.
  
  A filter function takes two arguments (the document to be replicated and the the replication request) and returns true or false. If the result is true, then the document is replicated.