This tool try to run queries to Elastic with this Content Type: > Content-Type: text/plain; charset=UTF-8 This is wrong as it should be `application/json; charset=UTF-8`. This also make this tool incompatible with Elasticsearch 6: > java -jar stream2es wiki --target 'http://elastic:passwordedited@localhost:9200/wikipedia' > > clojure.lang.ExceptionInfo: clj-http: status 406 {:request-time 2, :repeatable? false, :streaming? true, :chunked? false, :headers {"content-type" "application/json; charset=UTF-8"}, :orig-content-encoding nil, :status 406, :length -1, :body "{\"error\":\"Content-Type header [text/plain; charset=UTF-8] is not supported\",\"status\":406}", :trace-redirects ["http://elastic:passwordedited@localhost:9200/wikipedia"]} >
This tool try to run queries to Elastic with this Content Type:
This is wrong as it should be
application/json; charset=UTF-8. This also make this tool incompatible with Elasticsearch 6: