ropensci / elastic

R client for the Elasticsearch HTTP API
https://docs.ropensci.org/elastic
Other
245 stars 58 forks source link

docs_bulk_index warns 'one argument not used by format' #288

Open s-fleck opened 2 years ago

s-fleck commented 2 years ago

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:

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
)
sckott commented 2 years ago

thanks i'll have a look

maelle commented 1 year ago

For info this package is looking for a new maintainer cf #292 :smile_cat: