
Last chance! 50% off unlimited learning
Sale ends in
get(client, ...)
"get"(client, index, type = "_all", id, fields = NULL, source = TRUE, source_include = NULL, parent = NULL, source_exclude = NULL, realtime = TRUE, routing = NULL, preference = "random", refresh = FALSE, version = NULL, version_type = NULL, exists = FALSE, raw = FALSE, validate_params = TRUE, get_source = FALSE)
get
searches a document in an index based on its id and returns it.
get("twitter", id="1")
get("twitter", "tweet", "1")
get("twitter", "tweet", "1", 'c("name", "date")')
get("twitter", "tweet", "1", 'c("name", "date")', TRUE)
Run the code above in your browser using DataLab