Skip to content

Conversation

@dawner
Copy link

@dawner dawner commented Sep 13, 2017

ElasticSearch version 5+ has a breaking change which means the endpoint for checking exists_type? has changed from:
HEAD index_name/type_name to HEAD index_name/_mapping/type_name.

Currently, the elasticsearch-ruby gem has not been updated to reflect this change and the result for us after upgrading is a Elasticsearch::Transport::Transport::Errors::BadRequest [400] when using client.indices.exists_type?. As I am currently working on project with ES 5.5.3, I have targeted this PR at the 5.x branch but as the change exists in v6.0 too I presume it should also be fixed in master.

@dawner dawner changed the title Fix the path for indices exists_type? method & update docs Fix the path for indices exists_type? method Sep 13, 2017
@gfx
Copy link

gfx commented Oct 5, 2017

ping @karmi

karmi pushed a commit that referenced this pull request Oct 5, 2017
@karmi
Copy link
Contributor

karmi commented Oct 5, 2017

Hello @dawner, thank you very much for the patch and apologies for the delay with merging it!

@karmi karmi closed this in 69ec28d Oct 5, 2017
@karmi
Copy link
Contributor

karmi commented Oct 5, 2017

Merged into master and 5.x branches. (Github says "Closed" unfortunately, I've changed the commit message to include the PR number.) BTW, thanks for the correct commit subject line prefixes, @dawner, so rare :)

And thanks for the ping, @gfx! :)

@gfx
Copy link

gfx commented Oct 6, 2017

@karmi Thanks for the quick action. Can you release a new version? I'd love to use it for our production.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants