2013-06-22 15:25:01 -04:00
|
|
|
{
|
|
|
|
"get_source": {
|
2014-01-22 08:40:31 -05:00
|
|
|
"documentation": "http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/docs-get.html",
|
2013-06-22 15:25:01 -04:00
|
|
|
"methods": ["GET"],
|
|
|
|
"url": {
|
|
|
|
"path": "/{index}/{type}/{id}/_source",
|
|
|
|
"paths": ["/{index}/{type}/{id}/_source"],
|
|
|
|
"parts": {
|
|
|
|
"id": {
|
|
|
|
"type" : "string",
|
2013-09-09 14:59:47 -04:00
|
|
|
"required" : true,
|
2013-06-22 15:25:01 -04:00
|
|
|
"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-22 15:25:01 -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",
|
|
|
|
"description" : "Specify the node or shard the operation should be performed on (default: random)"
|
|
|
|
},
|
|
|
|
"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"
|
2014-01-16 08:59:37 -05: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",
|
2014-01-31 08:38:21 -05:00
|
|
|
"options" : ["internal", "external", "external_gte", "force"],
|
2014-01-16 08:59:18 -05:00
|
|
|
"description" : "Specific version type"
|
2013-06-22 15:25:01 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"body": null
|
|
|
|
}
|
|
|
|
}
|