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 ^8.0 support #246

Open
wants to merge 25 commits into
base: master
Choose a base branch
from

Conversation

sporchia
Copy link

This pull request contains breaking changes.

Elasticsearch 8.x introduced many breaking changes to the client. It seems to have been a complete overhaul.

8.x also introduced the native Client from ClientBuilder so there is no longer a need for the following files:

src/Infrastructure/Elastic/ElasticClientFactory.php - removed
src/Infrastructure/Elastic/ElasticClientBuilder.php- removed
and associated tests:

tests/Unit/ElasticClientBuilderTest.php - removed
tests/Unit/ElasticClientFactoryTest.php - removed
Client can now be injected via native ClientBuilder so ElasticClientBuilder was replaced with Elastic's native ClientBuilder and documentation has been updated to reflect this.

Also this updates tests to match how Elasticsearch suggests you mock their requests (using Guzzle in this case, see changes in FinderTest.php)

this is an expansion on #239 getting all the CI to work properly

@sporchia
Copy link
Author

sporchia commented Aug 5, 2024

Been testing this locally and seems to be working fine, any possible traction on merging?

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