Skip to content
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

Add ES 8.x support #1025

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Add ES 8.x support #1025

wants to merge 4 commits into from

Conversation

ryansch
Copy link
Contributor

@ryansch ryansch commented Apr 7, 2022

In addition to pinning v8 of elasticsearch-ruby, there were two other things I had to consider.

ES 8 does not allow sending a document type. I followed previous work in this repo and used Hash#compact to remove the type param.

elasticsearch-ruby v8 uses the new elastic-transport gem instead of the older elasticsearch-transport one. I added a (hopefully) backwards compatible solution via ELASTIC_TRANSPORT_CLASS.

@ryansch
Copy link
Contributor Author

ryansch commented Apr 7, 2022

The test suite needs to run with ES 8 on this branch but I'm not familiar enough with it to make the right change.

@RouL
Copy link

RouL commented Jun 21, 2022

Without having a deeper look into it I'd say replace all occurences of stack-version: 7.x-SNAPSHOT with stack-version: 8.4.0-SNAPSHOT in .github/workflows/*.yml
At least that's what is in the elasticsearch-ruby main-branch.

@leifcr leifcr mentioned this pull request Jul 3, 2022
@woto woto mentioned this pull request Apr 21, 2023
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.

None yet

2 participants