2013-05-26 12:54:48 -04:00
{
"mget" : {
2015-03-24 12:03:35 -04:00
"documentation" : "http://www.elastic.co/guide/en/elasticsearch/reference/master/docs-multi-get.html" ,
2013-05-26 12:54:48 -04:00
"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" ,
2013-06-17 10:58:12 -04:00
"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"
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"
2013-05-26 12:54:48 -04:00
}
}
} ,
"body" : {
2013-06-21 12:38:55 -04:00
"description" : "Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL." ,
2014-01-27 05:28:32 -05:00
"required" : true
2013-05-26 12:54:48 -04:00
}
}
}