-
Notifications
You must be signed in to change notification settings - Fork 706
Bulk indexing
jprante edited this page Jan 16, 2013
·
4 revisions
Bulk indexing is automatically used in order to speed up the indexing process.
Each SQL result set will be indexed by a single bulk if the bulk size is not specified.
A bulk size can be defined, also a maximum size of active bulk requests to cope with high load situations. A bulk timeout defines the time period after which bulk feeds continue.
curl -XPUT 'localhost:9200/_river/my_jdbc_river/_meta' -d '{
"type" : "jdbc",
"jdbc" : {
"driver" : "com.mysql.jdbc.Driver",
"url" : "jdbc:mysql://localhost:3306/test",
"user" : "",
"password" : "",
"sql" : "select * from orders"
},
"index" : {
"index" : "jdbc",
"type" : "jdbc",
"bulk_size" : 100,
"max_bulk_requests" : 30,
"bulk_timeout" : "60s"
}
}'