Details
-
Story
-
Resolution: Won't Do
-
Major
-
None
-
5.1.0
-
None
-
Currently we have replication filter by key.
One can configure regex of keys to be replicated (others will not be replicated).
Currently Value is also available in same point code checks the Key.
Description
Idea
Allow JavaScript filter of XDCR replication, based on both: meta data and document value.
Possible interface: same as that of map view function.
Example (in our data model)
function(doc, meta) { |
return doc.options.profile_transfer.state=="enabled" && options.profile_transfer.params.dst=="ls1" |
}
|