2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"delete": {
|
|
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/delete/",
|
|
|
|
"methods": ["DELETE"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}",
|
|
|
|
"paths": ["/{index}/{type}/{id}"],
|
|
|
|
"parts": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"id": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The document ID"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"index": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the index"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The type of the document"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"consistency": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["one", "quorum", "all"],
|
|
|
|
"description" : "Specific write consistency setting for the operation"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"parent": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "ID of parent document"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"refresh": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Refresh the index after performing the operation"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"replication": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["sync","async"],
|
|
|
|
"default" : "sync",
|
|
|
|
"description" : "Specific replication type"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
2013-05-24 06:02:42 -04:00
|
|
|
"routing": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"timeout": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "time",
|
|
|
|
"description" : "Explicit operation timeout"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"version_type": {
|
2013-05-26 10:38:24 -04:00
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["internal","external"],
|
|
|
|
"description" : "Specific version type"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|