Closed bnewbold closed 3 years ago
Thanks, I'll look into it!
bump. "document type" has been removed in Elasticsearch 7.x, see Removal of mapping types. Using esbulk with a (provided) mapping without "document type" causes an error message á la
failed to apply mapping with 400 Bad Request: {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."}],"type":"illegal_argument_exception","reason":"Types cannot be provided in put mapping requests, unless the include_type_name parameter is set to true."},"status":400}
Yes, that issue has been dangling (along with some better testing setup for various es versions).
When trying to index documents into an Elasticsearch 6.x index with no document type (eg, created with
include_type_name=false
andmappings
is directly the schema, not a JSON object with key_doc
), I got the followingesbulk
error:This might be an issue with using ES 6.x in this way, but from the panic text I suspect this is due to
esbulk
not supporting this newer single-document-type mapping format.