mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-23 05:15:04 +00:00
Added the "get_source" API
Specific endpoint for: curl -XGET 'http://localhost:9200/twitter/tweet/1/_source'
This commit is contained in:
parent
2424828eaa
commit
11db906004
50
rest-api-spec/api/get_source.json
Normal file
50
rest-api-spec/api/get_source.json
Normal file
@ -0,0 +1,50 @@
|
||||
{
|
||||
"get_source": {
|
||||
"documentation": "http://elasticsearch.org/guide/reference/api/get/",
|
||||
"methods": ["GET"],
|
||||
"url": {
|
||||
"path": "/{index}/{type}/{id}/_source",
|
||||
"paths": ["/{index}/{type}/{id}/_source"],
|
||||
"parts": {
|
||||
"id": {
|
||||
"type" : "string",
|
||||
"required" : true,
|
||||
"description" : "The document ID"
|
||||
},
|
||||
"index": {
|
||||
"type" : "string",
|
||||
"required" : true,
|
||||
"description" : "The name of the index"
|
||||
},
|
||||
"type": {
|
||||
"type" : "string",
|
||||
"required" : true,
|
||||
"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"
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": null
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user