This major release is a complete new PHP client for Elasticsearch. We build it from scratch!
We tried to reduce the BC breaks as much as possible but there are some (big) differences:
Architectural changes:
we changed the namespace, now everything is under Elastic\Elasticsearch
we changed the Exception model, using the namespace Elastic\Elasticsearch\Exception. All the exceptions extends the
ElasticsearchException interface, as in 7.x
we changed the response type of each endpoints using an Elasticsearch response class.
This class wraps a a PSR-7 response allowing the access of the body response
as array or object. This means you can access the API response as in 7.x, no BC break here! :angel:
we changed the ConnectionPool in NodePool. The connection naming was ambigous since the objects are nodes (hosts)
You can have a look at the BREAKING_CHANGES file for more information.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps elasticsearch/elasticsearch from 7.12.0 to 8.2.2.
Release notes
Sourced from elasticsearch/elasticsearch's releases.
... (truncated)
Changelog
Sourced from elasticsearch/elasticsearch's changelog.
... (truncated)
Commits
0a3c814
Updated release notes in docs9cc3836
Removed internal and failing YAML tests on Fieldtypec75d7ff
Reapply the YAML_FILES_TO_OMIT for Internal tests70371ee
Reverted Accept header of Cat endpoints630cb0b
Updated endpoints to 8.28d245bc
Added the array support for text/plain (#1220)a8fb0e0
[DOCS] Edits README. (#1219)abd3f43
Updated YamlTests removing _internal APIc2b7863
Updated release notes in docs1616e50
Added 8.1.0 in CHANGELOGDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)