Elasticsearch Php Versions Save

Official PHP client for Elasticsearch.

v6.8.3

3 weeks ago

This release contains the following fixes:

  • Allow PSR/2 #1154
  • Removed PHP 8 deprecation notice 3d2d852

v8.13.0

1 month ago

This release is compatible with the latest Elasticsearch 8.13.0.

  • Added the mapTo($class) function to Elasticsearch response for mapping the result of ES|QL query to an object of stdClass or of a specific class #1398

This release introduces 6 new APIs and 6 EXPERIMENTAL APIs.

v8.12.0

3 months ago

This release is compatible with the latest Elasticsearch 8.12.0.

This release has been tested with PHP 8.3, released on Nov 23, 2023.

v8.11.0

5 months ago

This release is compatible with the latest Elasticsearch 8.11.0.

It includes the following fix:

  • Fixed path in hosts configuration is ignored #1377

This release introduces 5 new EXPERIMENTAL APIs:

Esql.query (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/v8.11.0/rest-api-spec/src/main/resources/rest-api-spec/api/esql.query.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/esql-query-api.html

Inference.deleteModel (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/v8.11.0/rest-api-spec/src/main/resources/rest-api-spec/api/inference.delete_model.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-inference-api.html

Inference.getModel (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/v8.11.0/rest-api-spec/src/main/resources/rest-api-spec/api/inference.get_model.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/get-inference-api.html

Inference.inference (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/v8.11.0/rest-api-spec/src/main/resources/rest-api-spec/api/inference.inference.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/post-inference-api.html

Inference.putModel (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/v8.11.0/rest-api-spec/src/main/resources/rest-api-spec/api/inference.put_model.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/put-inference-api.html

v8.10.0

7 months ago

This release is compatible with the latest Elasticsearch 8.10.0.

Added 10 new APIs: 8 EXPERIMENTAL and 2 stable:

v8.9.0

8 months ago

This release is compatible with the latest Elasticsearch 8.9.0.

v8.8.1

10 months ago

This release contains the following fix:

  • Added the psr/http-message ^2.0 support #1313 (this was supposed to be in 8.8.0)

v8.8.0

11 months ago

This release is compatible with the latest Elasticsearch 8.8.0.

General changes

This release introduces 15 new APIs: 13 EXPERIMENTAL and 2 stable.

Specific changes per endpoints

Added the include_named_queries_score boolean parameter. Indicates whether hit.matched_queries should be rendered as a map that includes the name of the matched query associated with its score (true) or as an array containing the name of the matched queries (false)

Cluster.getComponentTemplate

Added include_defaults boolean parameters. Return all default configurations for the component template (default: false)

Indices.deleteDataLifecycle (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.delete_data_lifecycle.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-delete-lifecycle.html

Indices.explainDataLifecycle (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.explain_data_lifecycle.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/dlm-explain-lifecycle.html

Indices.getDataLifecycle (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.get_data_lifecycle.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-get-lifecycle.html

Indices.getDataStream

Added include_defaults boolean parameter. Return all relevant default configurations for the data stream (default: false)

Indices.getIndexTemplate

Added include_defaults boolean parameter. Return all relevant default configurations for the index template (default: false)

Indices.putDataLifecycle (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/indices.put_data_lifecycle.json DOcumentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/dlm-put-lifecycle.html

Indices.simulateIndexTemplate

Added include_defaults boolean parameter. Return all relevant default configurations for this index template simulation (default: false)

Indices.simulateTemplate

Added include_defaults boolean parameter. Return all relevant default configurations for this template simulation (default: false)

Logstash.getPipeline

Make id parameter optional.

Ml.putTrainedModel

Added wait_for_completion boolean parameter. Whether to wait for all child operations (e.g. model download) to complete, before returning or not. Default to false

Ml.startTrainedModelDeployment

Added deployment_id string parameter. The Id of the new deployment. Defaults to the model_id if not set.

SearchApplication.delete (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.delete.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html

SearchApplication.deleteBehavioralAnalytics (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.delete_behavioral_analytics.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/delete-analytics-collection.html

SearchApplication.get (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.get.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/get-search-application.html

SearchApplication.getBehavioralAnalytics (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.get_behavioral_analytics.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/list-analytics-collection.html

SearchApplication.list (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.list.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/list-search-applications.html

SearchApplication.postBehavioralAnalyticsEvent (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.post_behavioral_analytics_event.json Documentation: TBD

SearchApplication.put (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.put.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/put-search-application.html

SearchApplication.putBehavioralAnalytics (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.put_behavioral_analytics.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/put-analytics-collection.html

SearchApplication.search (new EXPERIMENTAL API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/search_application.search.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/master/search-application-search.html

Transform.deleteTransform

Added delete_dest_index boolean parameter. When true, the destination index is deleted together with the transform. The default value is false, meaning that the destination index will not be deleted.

Watcher.getSettings (new API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/watcher.get_settings.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-settings.html

Watcher.updateSettings (new API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/watcher.update_settings.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-update-settings.html

v7.17.2

1 year ago

This release contains the following fix:

  • Added ELASTIC_CLIENT_URL_PLUS_AS_SPACE env variable for URL encode #1303 and b35ec5e

v8.7.0

1 year ago

This release is compatible with the latest Elasticsearch 8.7.0.

  • Allow plugin for php-http/discovery library #1294

General changes

This release introduces 2 new APIs.

Specific changes per endpoints

healthReport (new API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/health_report.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/health-api.html

Transform.scheduleNowTransform (new API)

API: https://github.com/elastic/elasticsearch/blob/main/rest-api-spec/src/main/resources/rest-api-spec/api/transform.schedule_now_transform.json Documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/schedule-now-transform.html

Ml.deleteJob

Added the delete_user_annotations boolean parameter. Should annotations added by the user be deleted

Ml.resetJob

Added the delete_user_annotations boolean parameter. Should annotations added by the user be deleted

Transform.getTransformStats

Added the timeout time parameter. Controls the time to wait for the stats

Transform.startTransform

Added the from string parameter. Restricts the set of transformed entities to those changed after this time