2013-06-04 07:31:37 -04:00
|
|
|
{
|
|
|
|
"exists": {
|
|
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/get/",
|
|
|
|
"methods": ["HEAD"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}",
|
2013-09-26 12:52:23 -04:00
|
|
|
"paths": ["/{index}/{type}/{id}"],
|
2013-06-04 07:31:37 -04:00
|
|
|
"parts": {
|
|
|
|
"id": {
|
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The document ID"
|
|
|
|
},
|
|
|
|
"index": {
|
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the index"
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type" : "string",
|
2014-01-08 11:37:35 -05:00
|
|
|
"required" : true,
|
2013-06-04 07:31:37 -04:00
|
|
|
"description" : "The type of the document (use `_all` to fetch the first document matching the ID across all types)"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
|
|
|
"parent": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "The ID of the parent document"
|
|
|
|
},
|
|
|
|
"preference": {
|
|
|
|
"type" : "string",
|
2013-06-17 10:58:12 -04:00
|
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
2013-06-04 07:31:37 -04:00
|
|
|
},
|
|
|
|
"realtime": {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether to perform the operation in realtime or search mode"
|
|
|
|
},
|
|
|
|
"refresh": {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Refresh the shard containing the document before performing the operation"
|
|
|
|
},
|
|
|
|
"routing": {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|