Skip to content

Instantly share code, notes, and snippets.

@dadoonet
Created January 26, 2012 20:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dadoonet/1684939 to your computer and use it in GitHub Desktop.
Save dadoonet/1684939 to your computer and use it in GitHub Desktop.
Launching multiple couchdb river
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