Releases: elastic/elasticsearch-php
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.
Release 7.2.2
- Reintroduced the optional parameter in
Elasticsearch\Namespaces\IndicesNamespace::getAliases()
.
This fixes the BC break introduced in 7.2.0 and 7.2.1 #947
Release 7.2.1
Release 7.2.0
-
Updated the API endpoints for working with Elasticsearch 7.2.0 [27d721b]:
- added
wait_for_active_shards
parameter toindices.close
API; - added
expand_wildcards
parameter tocluster.health
API; - added include_unloaded_segments
,
expand_wildcards,
forbid_closed_indicesparameters to
indices.stats` API.
- added
-
Updated the phpdoc parameters for all the API endpoints [27d721b]
-
Improved the Travis CI speed using cache feature with composer #929
-
Fixed
php_uname()
usage checking if it is disabled #927 -
Added support of Elastic Cloud ID and API key authentication
#923
BC break
IndicesNamespace::getAliases()
has been changed in favor ofIndicesNamespace::getAlias()
. This because the endpoints are generated from the API specification of Elasticsearch and the name isindices.get_alias
(see here).
NOTE: we released 7.2.1 that reintroduces the getAliases()
function as proxy to getAlias()
, please use this version to avoid BC breaks.
Release 6.7.2
- Fix #846 choosing
GET
andPOST
in endpoints based on body [acbc76d0] - Fix #843 adding
wait_for_active_shards
andpipeline
inUpdateByQuery
[acbc76d0] - Fixed missing
ScriptsPainlessExecute
endpoint, since ES 6.3 [acbc76d0] - Fixed missing
RankEval
endpoint, since ES 6.2 [acbc76d0] - Added User-Agent header equal to
elasticsearch-php/6.7.2 (metadata-values)
[acbc76d0]
Release 6.5.1
- Fix #846 choosing
GET
andPOST
in endpoints based on body [acbc76d0] - Fix #843 adding
wait_for_active_shards
andpipeline
inUpdateByQuery
[acbc76d0] - Fixed missing
ScriptsPainlessExecute
endpoint, since ES 6.3 [acbc76d0] - Fixed missing
RankEval
endpoint, since ES 6.2 [acbc76d0] - Added User-Agent header equal to
elasticsearch-php/6.5.1 (metadata-values)
[acbc76d0]
NOTE: this release can be used with Elasticsearch from 6.0 to 6.5 included.