Skip to content

Releases: elastic/elasticsearch-php

Release 7.9.0

18 Aug 15:25
v7.9.0
1380925
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 7.9.0 released in 18th August 2020.

It includes the following fixes:

  • Moved scroll_id into body for search operations in the documentation #1052
  • Fixed PHP 7.4 preloading feature for autoload.php #1051
  • Improved message of JSON errors using json_last_error_msg() #1045
  • Make ClientBuilder override possible, using static instead of self #1036

Added the following new APIs 🎉:

Stable

Beta

Beta APIs are on track to become stable and permanent features. Use them with caution because it is possible that breaking changes are made to these APIs in a minor version.

Experimental

Experimental APIs are just that - an experiment. An experimental API might have breaking changes in any future version, or it might even be removed entirely.

API changes

  • Indices.putMapping: added the write_index_only parameter = (boolean) When true, applies mappings only to the write index of an alias or data stream (Default = false)

  • Ml.deleteExpiredData: added the following parameters:

    • job_id (string) The ID of the job(s) to perform expired data hygiene for
    • requests_per_second (number) The desired requests per second for the deletion processes
    • timeout (time) How long can the underlying delete processes run until they are canceled
    • body (array) deleting expired data parameters
  • Ml.forecast: added the parameter max_model_memory (string) The max memory able to be used by the forecast. Default is 20mb.

  • Ml.getCategories: added the parameter partition_field_value (string) Specifies the partition to retrieve categories for. This is optional, and should never be used for jobs where per-partition categorization is disabled

  • Ml.getTrainedModels: added the parameter for_export (boolean) Omits fields that are illegal to set on model PUT (Default = false)

  • Xpack.info: added the parameter accept_enterprise (boolean) If an enterprise license is installed, return the type and mode as 'enterprise' (default: false)

  • Indices.deleteDataStream: changed the name parameter from string to list (a comma-separated list of data streams to delete; use * to delete all data streams)

  • Indices.getDataStream (name changed from getDataStreams): changed the name parameter from string to list (a comma-separated list of data streams to get; use * to get all data streams)

Release 7.4.2

11 Aug 15:53
v7.4.2
a80f54b
Compare
Choose a tag to compare

This release fixes #1048 and #1017 issues with indexing failure for item IDs that contain slashes.

Release 7.8.0

18 Jun 20:09
v7.8.0
5c2d039
Compare
Choose a tag to compare

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 to false
  • 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.

and the new Searchable snapshot namespace with the following experimental APIs:

Release 7.7.0

13 May 16:11
v7.7.0
1d90a7f
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 7.7.0 released in 13th May 2020.

It contains the following new features 🎉:

  • Added JUnit log for PHPUnit 88b7e1c
  • Added the XPack endpoints 763d91a

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:

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

17 Feb 08:23
v7.5.2
ce31ac9
Compare
Choose a tag to compare

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

15 Feb 00:14
v7.6.1
d4f24bc
Compare
Choose a tag to compare

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

14 Feb 17:37
v7.6.0
266763d
Compare
Choose a tag to compare
  • 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

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