Created
January 26, 2012 20:35
-
-
Save dadoonet/1684939 to your computer and use it in GitHub Desktop.
Launching multiple couchdb river
This file contains 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 -XPUT 'localhost:9200/_river/my_river1/_meta' -d '{ | |
"type" : "couchdb", | |
"couchdb" : { | |
"host" : "localhost", | |
"port" : 5984, | |
"db" : "my_db", | |
"filter" : null | |
}, | |
"index" : { | |
"index" : "my_db", | |
"type" : "my_type1", | |
"bulk_size" : "100", | |
"bulk_timeout" : "10ms" | |
} | |
}' | |
curl -XPUT 'localhost:9200/_river/my_river2/_meta' -d '{ | |
"type" : "couchdb", | |
"couchdb" : { | |
"host" : "localhost", | |
"port" : 5984, | |
"db" : "my_db", | |
"filter" : null | |
}, | |
"index" : { | |
"index" : "my_db", | |
"type" : "my_type2", | |
"bulk_size" : "100", | |
"bulk_timeout" : "10ms" | |
} | |
}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment