elasticsearch-sample-index
elasticsearch-sample-index copied to clipboard
Support ES6 required Content-Type header
Modify cURL requests to include
Content-Type: application/json
Background: Starting from Elasticsearch 6.0, all REST requests that include a body must also provide the correct content-type for that body.
https://www.elastic.co/blog/strict-content-type-checking-for-elasticsearch-rest-requests