Added support for elasticsearch 8.x by huangdijia · Pull Request #7202 · hyperf/hyperf

@huangdijia added this to the v3.2 milestone

Dec 13, 2024
- Add compatibility with both elasticsearch 7.x and 8.x client libraries
- Update composer.json to allow elasticsearch/elasticsearch ^8.0
- Improve client builder factory with better dependency injection
- Add proper error handling when elasticsearch package is missing

@huangdijia

… dependency

- Updated constructor to accept a nullable ClientFactory instance.
- Enhanced client builder logic to conditionally set the HTTP client based on the presence of the Guzzle client factory.

This change improves dependency injection and maintains compatibility with existing functionality.