Elasticsearch throws the warning one argument not used by format '{"%s":{"_index":"%s"}}'
when inserting data with docs_bulk_index()
(and possibly other related functions). Despite that, the data seems to get inserted correctly.
Elasticsearch versions tested:
elastic package versions tested:
- 1.2.0 (CRAN)
- 1.2.1.91 (latest github version at the time of writing)
Steps to reproduce:
con <- elastic::connect("127.0.0.1")
dd <- data.frame(
level = 400L,
stringsAsFactors = FALSE)
elastic::docs_bulk_index(
con,
x = dd,
index = "test_index",
quiet = TRUE
)