49 lines
1.4 KiB
JSON
49 lines
1.4 KiB
JSON
{
|
|
"bulk": {
|
|
"documentation": "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-bulk.html",
|
|
"methods": ["POST", "PUT"],
|
|
"url": {
|
|
"path": "/_bulk",
|
|
"paths": ["/_bulk", "/{index}/_bulk", "/{index}/{type}/_bulk"],
|
|
"parts": {
|
|
"index": {
|
|
"type" : "string",
|
|
"description" : "Default index for items which don't provide one"
|
|
},
|
|
"type": {
|
|
"type" : "string",
|
|
"description" : "Default document type for items which don't provide one"
|
|
}
|
|
},
|
|
"params": {
|
|
"consistency": {
|
|
"type" : "enum",
|
|
"options" : ["one", "quorum", "all"],
|
|
"description" : "Explicit write consistency setting for the operation"
|
|
},
|
|
"refresh": {
|
|
"type" : "boolean",
|
|
"description" : "Refresh the index after performing the operation"
|
|
},
|
|
"routing": {
|
|
"type" : "string",
|
|
"description" : "Specific routing value"
|
|
},
|
|
"timeout": {
|
|
"type" : "time",
|
|
"description" : "Explicit operation timeout"
|
|
},
|
|
"type": {
|
|
"type" : "string",
|
|
"description" : "Default document type for items which don't provide one"
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"description" : "The operation definition and data (action-data pairs), separated by newlines",
|
|
"required" : true,
|
|
"serialize" : "bulk"
|
|
}
|
|
}
|
|
}
|