Created
September 9, 2010 06:26
-
-
Save MrTrick/571476 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filters.source: | |
function(doc, req) { | |
if(!req.query.source) | |
throw("Please provide a query parameter `source`."); | |
if (doc.source && doc.source == req.query.source) | |
return true; | |
else | |
return false; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -X POST http://admin:pw@amun4:5005/_replicate -d '{"source":"http://admin:pw@amun4:5005/cgm_test","target":"http://admin:pw@amun4:5005/cgm_test3","filter":"couchapp/source","query_params":{"source":"mps"}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment