2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"bulk": {
|
|
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/bulk/",
|
|
|
|
"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
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"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
|
|
|
},
|
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
|
|
|
},
|
|
|
|
"replication": {
|
2013-05-26 06:24:58 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["sync","async"],
|
|
|
|
"default" : "sync",
|
|
|
|
"description" : "Explicitely set the replication type"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
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-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-05-26 06:24:58 -04:00
|
|
|
"body": {
|
|
|
|
"description" : "The operation definition and data (action-data pairs), separated by newlines"
|
|
|
|
}
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|