2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"get": {
|
|
|
|
"documentation": "http://elasticsearch.org/guide/reference/api/get/",
|
2013-06-04 07:31:37 -04:00
|
|
|
"methods": ["GET"],
|
2013-05-24 06:02:42 -04:00
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}",
|
2013-05-26 12:53:39 -04:00
|
|
|
"paths": ["/{index}/{type}/{id}", "/{index}/{type}/{id}/_source"],
|
2013-05-24 06:02:42 -04:00
|
|
|
"parts": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"id": {
|
2013-05-26 12:53:39 -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 12:53:39 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The name of the index"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"type": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "string",
|
|
|
|
"required" : true,
|
|
|
|
"description" : "The type of the document (use `_all` to fetch the first document matching the ID across all types)"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"params": {
|
2013-05-26 06:20:43 -04:00
|
|
|
"fields": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type": "list",
|
|
|
|
"description" : "A comma-separated list of fields to return in the response"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"parent": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "The ID of the parent document"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"preference": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "string",
|
2013-06-17 10:43:02 -04:00
|
|
|
"description" : "Specify the shard the operation should be performed on (default: random shard)"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
|
|
|
"realtime": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Specify whether to perform the operation in realtime or search mode"
|
2013-05-24 06:02:42 -04:00
|
|
|
},
|
2013-05-26 06:20:43 -04:00
|
|
|
"refresh": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Refresh the shard containing the document before performing the operation"
|
2013-05-26 06:20:43 -04:00
|
|
|
},
|
|
|
|
"routing": {
|
2013-05-26 12:53:39 -04:00
|
|
|
"type" : "string",
|
|
|
|
"description" : "Specific routing value"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|