Hi..I am using _bulk for sending bulk requests to rest api..But when I run the code, I find the warning "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.Deprecated field [template] used, expected [source] instead" as response. I read the documentation for Bulk api. It says i need to set content-type to application/x-ndjson. How can I change content-type header from application/json to application/x-ndjson? Can someone please suggest me ways to change the content-type?
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.