Learn R Programming

elasticsearch (version 0.1.0)

mget: mget

Description

Get multiple documents based on an index, type (optional) and ids.

Usage

mget(client, ...)
"mget"(client, index, type = "_all", body, fields, source, source_include, source_exclude, realtime, preference, refresh, routing, raw = FALSE, validate_params = TRUE)

Arguments

client
index
String The name of the index
type
String The type of the document (use _all to fetch the first document matching the ID across all types)
fields
String, String[] A comma-separated list of fields to return in the response
source
String, String[], Logical True or false to return the _source field or not, or a list of fields to return
source_include
String, String[], Logical A list of fields to extract and return from the _source field
source_exclude
String, String[], Logical A list of fields to exclude from the returned _source field
realtime
Logical Specify whether to perform the operation in realtime or search mode
preference
String Specify the node or shard the operation should be performed on (default: random)
refresh
Logical Refresh the shard containing the document before performing the operation
routing
String Specific routing value

References

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-multi-get.html