Skip to content

Releases: elastic/elasticsearch-php

Release 7.2.1

27 Aug 12:22
Compare
Choose a tag to compare
  • Reintroduced Elasticsearch\Namespaces\IndicesNamespace::getAliases() as proxy to IndicesNamespace::getAlias() to prevent BC breaks. The getAliases() is marked as deprecated and it will be removed from elasticsearch-php 8.0 #943

Docs

  • Fixed missing put mapping code snippet in code examples #938

Release 7.2.0

26 Aug 15:48
Compare
Choose a tag to compare
  • Updated the API endpoints for working with Elasticsearch 7.2.0 [27d721b]:

    • added wait_for_active_shards parameter to indices.close API;
    • added expand_wildcards parameter to cluster.health API;
    • added include_unloaded_segments, expand_wildcards, forbid_closed_indicesparameters toindices.stats` API.
  • 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 of IndicesNamespace::getAlias(). This because the endpoints are generated from the API specification of Elasticsearch and the name is indices.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

19 Jul 14:51
Compare
Choose a tag to compare
  • Fix #846 choosing GET and POST in endpoints based on body [acbc76d0]
  • Fix #843 adding wait_for_active_shards and pipeline in UpdateByQuery [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

19 Jul 14:12
Compare
Choose a tag to compare
  • Fix #846 choosing GET and POST in endpoints based on body [acbc76d0]
  • Fix #843 adding wait_for_active_shards and pipeline in UpdateByQuery [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

18 Jul 15:14
Compare
Choose a tag to compare
  • Added User-Agent header equal to elasticsearch-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 and pipeline in UpdateByQuery [8b36458]

Release 7.1.1

12 Jul 14:31
Compare
Choose a tag to compare
  • Fixed ClientBuilder::setSSLVerification() to accept string or boolean #917
  • Fix type hinting for setBody in Elasticsearch\Endpoints\Ingest\Pipeline\Put #913

NOTE: this release can be used with Elasticsearch 7.0 and 7.1.

Release 7.1.0

09 Jul 12:13
Compare
Choose a tag to compare
  • 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 extend ServerErrorResponseException 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.

Release 7.0.2

01 Jul 10:55
Compare
Choose a tag to compare
  • Fixed incorrect return type hint when using async requests/futures
    #905

Release 7.0.1

17 Jun 14:45
Compare
Choose a tag to compare
  • Fixed SniffingConnectionPool removing the return type of Connection::sniff() #899

Release 7.0.0

13 Jun 15:39
Compare
Choose a tag to compare
  • Requirement of PHP 7.1 instead of 7.0 that is not supported since 1st Jan 2019 #897
  • Code refactoring using type hints and return type declarations where possible #897
  • Update vendor libraries (PHPUnit 7.5, Symfony YAML 4.3, etc) #897
  • Updated all the API endpoints using the latest 7.0.0 specs of Elasticsearch #897
  • Added the User-Agent in each HTTP request #898
  • Simplified the logging methods logRequestFail($request, $response, $exception)
    and logRequestSuccess($request, $response) in Elasticsearch\Connections\Connection
    #876
  • Fix json_encode for unicode(emoji) characters 856
  • Fix HTTP port specification using CURLOPT_PORT, not anymore in the host 782

Breaking changes

  • Requirement of PHP 7.1 instead of 7.0 that is not supported since 1 Jan 2019.
    See PHP supported version for more information.

  • Elasticsearch 7.0 deprecated APIs that accept types, introduced new typeless
    APIs, and removed support for the default mapping. Read this blog post for more information.

  • Added type hints and return type declarations where possible #897