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

ElasticSearch v8 support #1662

Merged
merged 6 commits into from
May 8, 2022
Merged

ElasticSearch v8 support #1662

merged 6 commits into from
May 8, 2022

Conversation

Seldaek
Copy link
Owner

@Seldaek Seldaek commented May 3, 2022

I'd be happy to have help/guidance here cc @ezimuel

Any other changes required?

#1660 mentioned something about _type failing, and I'm not sure what it's about as I have close to no experience with elastic search myself.

composer.json Show resolved Hide resolved
@mimmi20
Copy link
Contributor

mimmi20 commented May 6, 2022

Could you update the dependency to ruflin/elastica too, as they are using the same major version numbers?

@Seldaek Seldaek force-pushed the es8 branch 5 times, most recently from a5aefb1 to 12eacfa Compare May 7, 2022 12:18
@Seldaek
Copy link
Owner Author

Seldaek commented May 7, 2022

Well this is a friggin nightmare 😆 If someone has time to take over and fix things before I get to it feel free.

@ezimuel
Copy link

ezimuel commented May 7, 2022

@Seldaek I'll look into it soon. The _type has been deprecated in Elasticsearch 7 and removed in 8 (see here for more details).

@Seldaek
Copy link
Owner Author

Seldaek commented May 7, 2022

Yup I got that far now that it's running the tests against a real instance but then the elastica handler tests started failing not sure why..

@@ -69,6 +81,14 @@ public function __construct(Client $client, array $options = [], $level = Logger
],
$options
);

if ($client instanceof Client8 || $client::VERSION[0] === '7') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When is this comparison false? Clients before version 7 are not supported

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well only those versions are used in the tests but we don't enforce it when used within a project so I thought it safer to check and then used the same check in tests for consistency even tho there it's useless.

@mimmi20
Copy link
Contributor

mimmi20 commented May 8, 2022

Please have a look on PR #1666

@Seldaek Seldaek force-pushed the es8 branch 6 times, most recently from 1214126 to e03c96e Compare May 8, 2022 12:58
@Seldaek
Copy link
Owner Author

Seldaek commented May 8, 2022

Hell of a scope creep here, but I think it's good to merge :) Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants