This release is compatible with PHP 8.1 (thanks to @karyna-tsymbal-atwix) and the latest Elasticsearch 7.16.0 released in 7th December 2021.
It includes the following fixes and improvements:
- Added support of includePortInHostHeader in ClientBuilder::fromConfig #1181
- Fixed UTF-16 issue in SmartSerializer with single unpaired surrogate in unicode escape #1179
- Replace trait with abstract class to avoid Deprecated Functionality issue in PHP 8.1 #1175
Added the following new APIs 🎉 (4 stable, and 2 experimental):
Stable
- Indices.modifyDataStream: api spec, documentation
- Migration.getFeatureUpgradeStatus: api spec, documentation
- Migration.postFeatureUpgrade: api spec, documentation
- Transform.upgradeTransforms: api spec, documentation
Experimental
- Fleet.msearch: api spec, documentation
- Fleet.search: api spec, documentation
API changes
- deleteByQuery, removed
_source
,_source_excludes
,_source_includes
parameters - openPointInTime, the parameter
keep_alive
is now required. Changed theindex
parameter to be required (was optional) - Nodes.stats, added the
shards
option to theindex_metric
parameter - searchMvt, added the
track_total_hits
(boolean|long) parameter. Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number - termsEnum, this API is now stable
- updateByQuery, removed
_source
,_source_excludes
,_source_includes
parameters - Fleet.globalCheckpoints, this API is now stable
- Indices.getIndexTeamplate, changed the
name
parameter asstring
. A pattern that returned template names must match - Ingest.putPipeline, added the
if_version
parameter (int). Required version for optimistic concurrency control for pipeline updates - Ml.putTrainedModel, added the
defer_definition_decompression
parameter. (boolean) If set totrue
and acompressed_definition
is provided, the request defers definition decompression and skips relevant validations. (Default = false) - Monitoring.bulk, this API is now stable
- Nodes.hotThreads, added the
sort
parameter (enum). The sort order for 'cpu' type (default: total) (Options = cpu,total) - Nodes.info, changed the description of
metric
parameter (list). A comma-separated list of metrics you wish returned. Use_all
to retrieve all metrics and_none
to retrieve the node identity without any additional metrics - SearchableSnapshots.mount, this API is now stable
- SearchableSnapshots.stats, this API is now stable
- Security.clearCachedServiceTokens, this API is now stable
- Security.createServiceToken, this API is now stable
- Security.deleteServiceToken, this API is now stable
- Security.getServiceAccounts, this API is now stable
- Security.getServiceCredentials, this API is now stable
- Shutdown.deleteNode, this API is now stable
- Shutdown.getNode, this API is now stable
- Shutdown.putNode, this API is now stable
- Transform.deleteTransform, added the
timeout
parameter (time). Controls the time to wait for the transform deletion - Transform.previewTransform, added the
transform_id
parameter (string), The id of the transform to preview.
Added thetimeout
parameter (time). Controls the time to wait for the preview - Transform.putTransform, added the
timeout
parameter (time). Controls the time to wait for the transform to start - Transform.updateTransform, added the
timeout
parameter (time). Controls the time to wait for the update