OpenSearch/rest-api-spec/api/mget.json

43 lines
1.3 KiB
JSON
Raw Normal View History

2013-05-26 12:54:48 -04:00
{
"mget": {
"documentation": "http://elasticsearch.org/guide/reference/api/multi-get/",
"methods": ["GET", "POST"],
"url": {
"path": "/_mget",
"paths": ["/_mget", "/{index}/_mget", "/{index}/{type}/_mget"],
"parts": {
"index": {
"type" : "string",
"description" : "The name of the index"
},
"type": {
"type" : "string",
"description" : "The type of the document"
}
},
"params": {
"fields": {
"type": "list",
"description" : "A comma-separated list of fields to return in the response"
},
"preference": {
"type" : "string",
"description" : "Specify the node or shard the operation should be performed on (default: random)"
2013-05-26 12:54:48 -04:00
},
"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"
}
}
},
"body": {
"description" : "Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL.",
"required" : true
2013-05-26 12:54:48 -04:00
}
}
}