Description Usage Arguments Details See Also Examples
Performs multiple searches, defined in a file
1 |
conn |
an Elasticsearch connection object, see |
x |
(character) A file path |
raw |
(logical) Get raw JSON back or not. |
asdf |
(logical) If |
... |
Curl args passed on to crul::verb-POST |
This function behaves similarly to docs_bulk()
-
performs searches based on queries defined in a file.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
x <- connect()
msearch1 <- system.file("examples", "msearch_eg1.json", package = "elastic")
readLines(msearch1)
msearch(x, msearch1)
tf <- tempfile(fileext = ".json")
cat('{"index" : "shakespeare"}', file = tf, sep = "\n")
cat('{"query" : {"match_all" : {}}, "from" : 0, "size" : 5}', sep = "\n",
file = tf, append = TRUE)
readLines(tf)
msearch(x, tf)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.