Skip to content

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

@s-fleck

Description

@s-fleck

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:

  • 7.17.3
  • 7.6.1

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
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions