Releases: elastic/elasticsearch-php
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.
Release 5.5.0
- Added
User-Agent
header equal toelasticsearch-php/5.5.0 (metadata-values)
[26da9a33] - Fix #846 choosing GET and POST in endpoints based on body [cdbeab38]
- Fix #843 adding
wait_for_active_shards
andpipeline
in UpdateByQuery [8b36458]
Release 7.1.1
Release 7.1.0
- Added warning log for Elasticsearch response containing the
Warning
header #911 - Fixed #838 hosting company is blocking ports because of
YamlRunnerTest.php
#844 - Specialized inheritance of
NoNodesAvailableException
to extendServerErrorResponseException
instead of the generic\Exception
#607 - Fixed scroll TTL is extracted but not set as a body param #907
Testing
- Improved the speed of integration tests removing snapshots delete from
YamlRunnerTest::clean
#911 - Reduced the number of skipping YAML integration tests from 20 to 6 #911
Docs
- Documentation updated for Elasticsearch 7 #904
NOTE: this release can be used with Elasticsearch 7.0 and 7.1.