2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"bulk": {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-bulk.html",
|
2013-05-24 06:02:42 -04:00
|
|
|
"methods": ["POST", "PUT"],
|
|
|
|
"url": {
|
|
|
|
"path": "/_bulk",
|
|
|
|
"paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"],
|
|
|
|
"parts": {
|
|
|
|
"index": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Default index for items which don't provide one"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Default document type for items which don't provide one"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"consistency": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["one", "quorum", "all"],
|
|
|
|
"description" : "Explicit write consistency setting for the operation"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"refresh": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Refresh the index after performing the operation"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2014-01-16 07:21:14 -05:00
|
|
|
"routing": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
|
|
|
},
|
|
|
|
"timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"type": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Default document type for items which don't provide one"
|
2013-11-25 05:53:32 -05:00
|
|
|
},
|
|
|
|
"timeout": {
|
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-05-26 06:24:58 -04:00
|
|
|
"body": {
|
2014-01-20 05:03:03 -05:00
|
|
|
"description" : "The operation definition and data (action-data pairs), separated by newlines",
|
2014-01-21 10:31:41 -05:00
|
|
|
"required" : true,
|
|
|
|
"serialize" : "bulk"
|
2013-05-26 06:24:58 -04:00
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|