OpenSearch/rest-api-spec/api/bulk.json

59 lines
1.7 KiB
JSON
Raw Normal View History

{
"bulk": {
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-bulk.html",
"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"
},
"type": {
2013-05-26 06:24:58 -04:00
"type" : "string",
"description" : "Default document type for items which don't provide one"
}
},
"params": {
"consistency": {
2013-05-26 06:24:58 -04:00
"type" : "enum",
"options" : ["one", "quorum", "all"],
"description" : "Explicit write consistency setting for the operation"
},
"refresh": {
2013-05-26 06:24:58 -04:00
"type" : "boolean",
"description" : "Refresh the index after performing the operation"
},
"replication": {
2013-05-26 06:24:58 -04:00
"type" : "enum",
"options" : ["sync","async"],
"default" : "sync",
"description" : "Explicitly set the replication type"
},
"routing": {
"type" : "string",
"description" : "Specific routing value"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
},
"type": {
2013-05-26 06:24:58 -04:00
"type" : "string",
"description" : "Default document type for items which don't provide one"
},
"timeout": {
"type" : "time",
"description" : "Explicit operation timeout"
}
}
},
2013-05-26 06:24:58 -04:00
"body": {
"description" : "The operation definition and data (action-data pairs), separated by newlines",
"required" : true,
"serialize" : "bulk"
2013-05-26 06:24:58 -04:00
}
}
}