We have an application that can send _bulk requests to elasticsearch(I cannot modify what it sends), but is failing because the type is missing and it appears that [include_type_name] is not supported by the _bulk API. We are currently on Elasticsearch 6.8.6.
I'm aware that type is deprecated in 7.x.
I am following recommendations for upgrade path by going from 6.3.2, to 6.8.6(current), and then will move to 7.x when I've transitioned some settings. https://www.elastic.co/blog/moving-from-types-to-typeless-apis-in-elasticsearch-7-0
In 6.8.6 however there is a parameter that can be used to ease transition called "include_type_name".
My question is, why isn't the "include_type_name" recognized as parameter for the bulk index API, as it is for the single document API? Or is it supposed to be working and there is a bug?
I don't think either the Bulk API or the single-document Index API accept the ?include_type_name parameter in any released versions, and this is deliberate. PUT /test is the create index API and that does accept this parameter in 6.8 and 7.x, but that's nothing to do with indexing documents.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.