-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rest.index/refresh fails for Elasticsearch 5 #257
Comments
See Supported ElasticSearch versions and #245. |
@hantuzun if you'd like to contribute this small improvement, a pull request against master would be appreciated. |
Hi @michaelklishin, I fear that change might break some features in some of the many Elasticsearch versions supported. |
@hantuzun I don't see how adding a content type can break anything. In any case, no PRs for 5.x will be merged until 3.0 is released. |
I've already forked elastisch to my account and we're using it. It'd be a hassle to fork it again for this PR that's not merged. Hopefully 3.0 could be released soon and we could work on Elasticsearch 5.x support. |
Error from Elasticsearch 5 without this is: "Content type detection for rest requests is deprecated. Specify the content type using the [Content-Type] header." Per clojurewerkz#257
When I updated Elasticsearch to 5.5.2, our
rest.index/refresh
calls started to fail with a message fromclj-http
that "text/plain" content type is not acceptable.Updating
clojurewerkz.elastisch.rest
'spost
function with a:content-type
:json
setting fixed the issue for me, without breaking other hundreds of tests using elastisch for our application:The text was updated successfully, but these errors were encountered: