Releases: elastic/elasticsearch-php
Release 7.8.0
This release is compatible with the latest Elasticsearch 7.8.0 released in 18th June 2020.
It includes the following new endpoints 🎉:
and the following changes:
- Indices.getDataStreams, changed the
name
parameter type to string, instead of list - Tasks.cancel, added
wait_for_completion
boolean parameter. Can be use to block the request until the cancellation of the task and its descendant tasks is completed. Defaults tofalse
- Ml.deleteExpiredData, added
body
containing deleting expired data parameters - Ml.deleteDataFrameAnalytics, added
timeout
controls the time to wait until a job is deleted. Defaults to 1 minute
Elasticsearch 7.8.0 includes also some experimental APIs. Pleas note, an experimental API might have breaking changes in any future version, or it might even be removed entirely.
- Autoscaling.deleteAutoscalingPolicy
- Autoscaling.getAutoscalingPolicy
- Autoscaling.putAutoscalingPolicy
- Cluster.existsComponentTemplate
- Indices.deleteIndexTemplate
- Indices.existsIndexTemplate
- Indices.getIndexTemplate
- Indices.putIndexTemplate
- Indices.simulateIndexTemplate
and the new Searchable snapshot namespace with the following experimental APIs:
Release 7.7.0
This release is compatible with the latest Elasticsearch 7.7.0 released in 13th May 2020.
It contains the following new features 🎉:
and fixes :
- Removed setId() into endpoints, fixed
util/GenerateEndpoints.php
#1026 - Fixes JsonErrorException with code instead of message #1022
- Better exception message for Could not parse URI #1016
XPack endpoints 🎉
In this release we included all the XPack endpoints, that was previously managed in a separate repository elastic/elasticsearch-x-pack-php (not updated since Elasticsearch 5.0
😓).
These APIs are related to:
- Cross-cluster replication
- Graph explorer
- Info
- Licensing
- Machine learning anomaly detection
- Machine learning data frame analytics
- Migration
- Reload search analyzers
- Rollup
- Security
- Snapshot lifecycle management
- Transform
- Usage
- Watcher
New APIs added to Elasticsearch 7.7.0
Elasticsearch 7.7.0
includes the following new APIs:
Cluster
AsyncSearch
Autoscaling
Cat
Eql
Machine Learning (ML)
Experimental APIs:
Elasticsearch 7.7.0
includes also some experimental APIs. Pleas note, an experimental API might have breaking changes in any future version, or it might even be removed entirely.
Release 7.5.2
This release fixes an issue with guzzlehttp/ringphp
and guzzle/streams
dependencies. It uses a fork of these libraries in ezimuel/ringphp and ezimuel/guzzlestreams repositories.
See 92a6a4a commit.
Release 7.6.1
This release fixes an issue with guzzlehttp/ringphp
and guzzle/streams
dependencies. It uses a fork of these libraries in ezimuel/ringphp and ezimuel/guzzlestreams repositories.
See 92a6a4a commit.
Release 7.6.0
- Generated the new endpoints for Elasticsearch 7.6.0
be31f31
The following fix are also included in elasticsearch-php 7.5.1:
- Fixes port missing in log #925
75e0888 - Fixes #993 adding
ClientBuilder::includePortInHostHeader()
for including port in the Host header. By default, the port is not included.
#997 - Replace abandoned packages: ringphp, streams and phpstan-shim
#996 - Fixed gzip compression when setting Cloud Id
#986
For more information about Elasticsearch 7.6 release please read the following page:
https://www.elastic.co/blog/elasticsearch-7-6-0-released
Release 7.5.1
- Fixes port missing in log #925
commit 75e0888 - Fixes #993 adding
ClientBuilder::includePortInHostHeader()
for includingport
in theHost
header. By default, the port is not included.
#997 - Replace abandoned packages: ringphp, streams and phpstan-shim
#996 - Fixed gzip compression when setting Cloud Id
#986
Release 7.5.0
- Code generation of endpoint classes using the API specification of Elasticsearch 7.5.0
commit ec0e0aa - Fixed
Client::extractArgument
iterable casting to array; this allows passing aTraversable
body for some endpoints (e.g. Bulk, Msearch, MsearchTemplate)
#983 - Fixed the Response Exception if the
reason
field is null
#980 - Added support for PHP 7.4
#976
Release 7.4.1
This release solves the BC break issues introduced in 7.4.0
.
- We added the suppress operator
@
for the deprecation messages@trigger_error()
.
With this approach we don't break existing application that convert PHP errors in Exception
(e.g. using Laravel with issue https://github.com/babenkoivan/scout-elasticsearch-driver/issues/297).
Using the@
operator is still possible to intercept the deprecation message using a custom error handler.
#973 - Add missing leading slash in the URL of put mapping endpoint
#970 - Fix pre 7.2 endpoint class name with aliases + reapply fix #947.
This PR solved the unexpected BC break introduce in 7.4.0 with the code generation tool
#968
Release 7.4.0
BC breaks:
This version introduces some potential BC breaks:
- Using a deprecated parameter is notified triggering a E_USER_DEPRECATED error (e.g. using the
type
parameter will generate aSpecifying types in urls has been deprecated
deprecation message). - When
delete
with an emptyid
aMissing404Exception
exception is thrown. Previously it was aInvalidArgumentException
.
Changelog:
- Added the code generation for endpoints and namespaces based on the REST API specification
of Elasticsearch. This tool is available inutil/GenerateEndpoints.php
#966 - Fixed the asciidoc endpoints documentation based on the code generation using Sami project #966
- All the
experimental
andbeta
APIs are now signed with a@note
tag in the phpdoc section (e.g. $client->rankEval()). For more information read the experimental and beta APIs section in the documentation #966 - Removed
AlreadyExpiredException
since it has been removed from Elasticsearch with elastic/elasticsearch#24857 #954
Release 7.3.0
Support for Elasticsearch v7.3.
- Added support for simplified access to the
X-Opaque-Id
header #952 - Added the HTTP port in the log messages #950
- Fixed hostname with underscore (
ClientBuilder::prependMissingScheme
) #949 - Removed unused
Monolog
classes inClientBuilder
#948
Note: this release is also compatible with Elasticsearch v7.2.