When rebuilding the index, 5.3.x will start throwing these warnings to a logfile <clustername>_deprecation.log;
Someone else encountering it: https://github.com/olivere/elastic/issues/511
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/docs-bulk.html
Code:
[2017-05-03T09:04:26,856][WARN ][o.e.d.r.RestController ] Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header.
Someone else encountering it: https://github.com/olivere/elastic/issues/511
https://www.elastic.co/guide/en/elasticsearch/reference/5.3/docs-bulk.html
When sending requests to this endpoint the Content-Type header should be set to application/x-ndjson.