Skip to content

Releases: elastic/elasticsearch-php

Release 7.5.1

14 Feb 16:41
v7.5.1
051bddc
Compare
Choose a tag to compare
  • Fixes port missing in log #925
    commit 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

Release 7.5.0

19 Dec 15:55
Compare
Choose a tag to compare
  • 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 a Traversable 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

26 Nov 12:05
Compare
Choose a tag to compare

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

19 Nov 15:29
Compare
Choose a tag to compare

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 a Specifying types in urls has been deprecated deprecation message).
  • When delete with an empty id a Missing404Exception exception is thrown. Previously it was a InvalidArgumentException.

Changelog:

Release 7.3.0

30 Sep 12:57
Compare
Choose a tag to compare

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 in ClientBuilder #948

Note: this release is also compatible with Elasticsearch v7.2.

Release 7.2.2

30 Aug 08:22
Compare
Choose a tag to compare
  • 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

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.