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",
|
2013-09-09 07:36:31 -04:00
|
|
|
"required" : false,
|
2013-09-09 11:04:50 -04:00
|
|
|
"default" : "_all",
|
2013-05-26 12:53:39 -04:00
|
|
|
"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:58:12 -04:00
|
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
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-09-23 07:23:25 -04:00
|
|
|
},
|
|
|
|
"_source": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "True or false to return the _source field or not, or a list of fields to return"
|
|
|
|
},
|
|
|
|
"_source_exclude": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A list of fields to exclude from the returned _source field"
|
|
|
|
},
|
|
|
|
"_source_include": {
|
|
|
|
"type" : "list",
|
|
|
|
"description" : "A list of fields to extract and return from the _source field"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|