Added the API definition for `_mget`

This commit is contained in:
Karel Minarik 2013-05-26 18:54:48 +02:00
parent da4ec58dc3
commit 6f1a1b6254
1 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,49 @@
{
"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"
},
"parent": {
"type" : "string",
"description" : "The ID of the parent document"
},
"preference": {
"type" : "string",
"description" : "Specify the shards the operation should be performed on (default: random shard)"
},
"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": {
"description" : "Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL."
}
}
}