2013-05-24 06:02:42 -04:00
|
|
|
{
|
|
|
|
"get": {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-get.html",
|
2013-06-04 07:31:37 -04:00
|
|
|
"methods": ["GET"],
|
2013-05-24 06:02:42 -04:00
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}",
|
2014-01-17 12:03:59 -05:00
|
|
|
"paths": ["/{index}/{type}/{id}"],
|
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",
|
2014-01-08 11:37:35 -05:00
|
|
|
"required" : true,
|
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"
|
2014-01-16 08:59:18 -05:00
|
|
|
},
|
|
|
|
"version" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Explicit version number for concurrency control"
|
|
|
|
},
|
|
|
|
"version_type": {
|
|
|
|
"type" : "enum",
|
|
|
|
"options" : ["internal","external"],
|
|
|
|
"description" : "Specific version type"
|
2013-05-24 06:02:42 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|