Skip to content

Releases: elastic/elasticsearch-php

Release 7.17.1

30 Sep 12:31
v7.17.1
f1b8918
Compare
Choose a tag to compare

This release contains the following fix:

  • Fixed a node selector issue for StickyRoundRobinSelector #1253

Release 8.4.0

24 Aug 15:45
8ecf231
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.4.0 and includes the following changes:

  • Added a ClientInterface to simplify the mock of the Client, this is a fix for #1227
    #1249
  • Added the support of Symfony HTTP client, fixing the issue #1241
    #1243
  • Added the API compatibility header
    #1233

Added the following new API 🎉

Stable

API changes

get

Added the force_synthetic_source parameter (boolean). Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.

mget

Added the force_synthetic_source parameter (boolean). Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.

search

Added the force_synthetic_source parameter (boolean). Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.

Ml.startTrainedModelDeployment

Added cache_size parameter (string). A byte-size value for configuring the inference cache size. For example, 20mb.

Snapshot.get

Added the following parameters:

  • sort (enum), allows setting a sort order for the result. Defaults to start_time;
  • size (integer), maximum number of snapshots to return. Defaults to 0 which means return all that match without limit;
  • order (enum), soprt order;
  • from_sort_value (string), value of the current sort column at which to start retrieval;
  • after (string), offset identifier to start pagination from as returned by the 'next' field in the response body;
  • offset (integer), numeric offset to start pagination based on the snapshots matching the request. Defaults to 0;
  • slm_policy_filter (string), filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Accepts wildcards. Use the special pattern '_none' to match snapshots without an SLM policy.

Release 8.3.0

28 Jun 20:05
6f01103
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.3.0.

Added the following new API 🎉

Experimental

API changes

Cluster.deleteVotingConfigExclusions

Added master_timeout parameter (time). Timeout for submitting request to master.

Cluster.postVotingConfigExclusions

Added master_timeout parameter (time). Timeout for submitting request to master.

Ml.inferTrainedModel (renamed)

The Ml.inferTrainedModelDeployment API has been renamed in Ml.inferTrainedModel.

Ml.previewDatafeed

Added the following optional parameters:

  • start: string, the start time from where the datafeed preview should begin;
  • end: string, the end time when the datafeed preview should stop.

Ml.startTrainedModelDeployment

Added the following optional parameters:

  • number_of_allocations: int, the number of model allocations on each node where the model is deployed;
  • threads_per_allocation: int, the number of threads used by each model allocation during inference;
  • queue_capacity: int, controls how many inference requests are allowed in the queue at a time.

Snapshot.get

Added the index_names parameter (boolean). Whether to include the name of each index in the snapshot. Defaults to true.

Release 8.2.1

25 May 07:23
0a3c814
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.2.1.

Release 8.2.0

04 May 07:31
abd3f43
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.2.0.

This release includes the following fixes:

  • Added the array support for text/plain #1220

Added the following new APIs 🎉 (2 stable and 6 experimental)

Stable

Experimental

Release 8.1.0

19 Apr 07:12
v8.1.0
ab37360
Compare
Choose a tag to compare

This release is compatible with the latest Elasticsearch 8.1.0.

Added the following new APIs 🎉 (4 stable)

API changes

Indices.forcemerge

Added wait_for_completion parameter.

Indices.get

Added features enum parameter, return only information on specified index features.

Ml.deleteTrainedModel

Added force boolean parameter, true if the model should be forcefully deleted.

Release 8.0.1

30 Mar 12:43
v8.0.1
f1851dc
Compare
Choose a tag to compare

This release contains the following fix:

  • use of NoNodeAvailableException exception in endpoints, fixing #1209 with e7d448d

Release 8.0.0

24 Mar 20:09
v8.0.0
27e46b0
Compare
Choose a tag to compare

Finally 8.0.0 for Elasticsearch 8.0 is GA!!! 🥳

This new major version of elasticsearch-php contains a brand new implementation compared with 7.x. It supports PSR-7 for HTTP messages and PSR-18 for HTTP client communications. We used the elastic-transport-php library for HTTP communications.

We tried to reduce the BC breaks as much as possible with 7.x but there are some (big) differences:

  • we changed the namespace, now everything is under Elastic\Elasticsearch;
  • we changed the Exception model, using the namespace Elastic\Elasticsearch\Exception. All the exceptions extends the
    ElasticsearchException interface, as in 7.x;
  • we changed the response type of each endpoints using an Elasticsearch response class.
    This class wraps a a PSR-7 response allowing the access of the body response
    as array or object. This means you can access the API response as in 7.x, no BC break here! 👼

You can have a look at the BREAKING_CHANGES file for more information.

We are still working on the new documentation for 8.0, in the meantime you can have a look at the README where we reported a quick start guide.

Release 8.0.0-RC2

09 Mar 09:16
v8.0.0-rc2
78676ec
Compare
Choose a tag to compare
  • Added the common parameters in all the endpoints 6427f8c

Release 8.0.0-RC1

06 Mar 22:09
v8.0.0-rc1
d3b0386
Compare
Choose a tag to compare
  • Fixed query string in API endpoints + added a first integration test e404235
  • Added AdapterOptions class and setNodePool() in ClientBuilder 9150f71
  • Fixed urlencode in params, Exception in test code generation 142327b
  • Improved client/server response exception messages 50de3e6