**See the full release notes on the official documentation website: https://www.elastic.co/docs/release-notes/elasticsearch/clients/ruby**

# 9.5.0

## Gem

* Tested versions of Ruby for 9.5.0:
  * Ruby MRI: `3.3`, `3.4`, `4.0`
  * JRuby `9.3`, `9.4`, `10.0`

## Elasticsearch API

### API Updates

* `bulk`, `count`, `delete`, `delete_by_query`, `explain`, `get`, `index`, `indices.validate_query`, `mget`, `msearch`, `mtermvectors`, `search`, `search_shards`, `termvectors`, `update`, `update_by_query`: New Parameter `:_slice`. Routes requests to a specific index slice. Use `_all` to target all slices.
* `cancel_reindex`, `get_reindex`, `list_reindex`: Promoted from Technical Preview to stable and no longer behind the `reindex_management_api` feature flag.
* `count`: New Parameter `:stats`. Specifies request tags for logging and statistical purposes.
* `esql.delete_view`, `esql.get_view`, `esql.put_view`: No longer behind the `esql_views` feature flag. These APIs remain in Technical Preview.
* `indices.validate_query`: New Parameter `:routing`. Specifies a custom value used to route operations to a shard.
* `inference.update`: New Parameter `:timeout`. Specifies how long to wait for the inference endpoint update.
* `search`: Parameter `:stats` now accepts either a string or an array of strings.
* `security.get_role`: New Parameter `:include_implicit`. Includes implicitly granted privileges in the response.
* `snapshot.repository_analyze`: New Parameter `:check_overwrite_protection`. Controls whether to run the overwrite protection check.
* `synonyms.get_synonym`: New Parameter `:search_after`. Uses a synonym rule ID as the pagination cursor.
* `synonyms.put_synonym`: New Parameter `:append`. Appends rules to an existing synonyms set instead of replacing the complete set.
* `transform.get_transform_stats`: New Parameter `:basic`. Returns basic transform statistics while skipping expensive checkpoint calculations.
* `transform.schedule_now_transform`: New Parameter `:defer`. Defers scheduling by the transform's configured synchronization delay.

### New APIs

* `inference.delete_region_policy` - Delete the inference region policy.
* `inference.get_region_policy` - Get the inference region policy.
* `inference.put_region_policy` - Create or update the inference region policy.

Available only in Stack, in Technical Preview:

* `encryption.reset` - Reset the project encryption key. Requires the `:accept_data_loss` parameter.

# 9.4.3

* Fixes header conflict when using Elasticsearch Serverless. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2984)

# 9.4.2

* Updates `elasticsearch-api`, source code documentation for beta/experimental APIs.
* Fixes NoMethodError when `Content-Type` lacks `compatible-with` parameter. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2974)

# 9.4.1

- Updates `elasticsearch-api` to the latest Elasticsearch 9.4 specification.
- Better handling of `content-type` headers when using Manticore and JRuby to avoid duplication.

# 9.4.0

## Gem

* Tested versions of Ruby for 9.4.0:
  * Ruby MRI: `3.3`, `3.4`, `4.0`
  * JRuby `9.3`, `9.4`, `10.0`

### ES|QL Query Builder

The [Ruby ES|QL Query Builder](https://github.com/elastic/esql-ruby) [version 0.6.0](https://github.com/elastic/esql-ruby/releases/tag/v0.6.0) has been released. The version adds support for `INLINE_STATS`, `METRICS_INFO`, `PROMQL`, `REGISTERED_DOMAIN`, `SET`, `URI_PARTS`, and `USER_AGENT`.

## Elasticsearch API

### API Updates

* `async_search.get`: New Parameter `:return_intermediate_results`. Specifies whether the response should contain intermediate results if the query is still running when the wait_for_completion_timeout.
* `project.tags`: Parameter removed `:project_routing`. Added `:body` parameter.
* `reindex_rethrottle`: New Parameter `:group_by`.
* `search_mvt`: Parameter removed `:project_routing`. Specifies a subset of projects to target for the search using project.
* `streams.logs_disable`: New Parameter `:name`. The stream type to disable. (*Required*)
* `streams.logs_enable`: New Parameter `:name`. The stream type to enable. (*Required*)
* `text_structure.find_field_structure`, `text_structure.find_message_structure`, `text_structure.find_structure`: New Parameter `:should_parse_recursively`. If the format is `ndjson`, you can specify whether to parse nested JSON objects recursively.
* The APIs in the `streams` namespace were behind a feature flag and now they're not. They are still available in Technical Preview.
* `indices.downsample` has been promoted from Technical Preview to stable.

### New APIs

* `inference.put_fireworksai` - Create a Fireworks AI inference endpoint.

In Technical Preview, available behind the feature flag `reindex_management_api`.

* `cancel_reindex` - Cancel an ongoing reindex task.
* `get_reindex` - Get the status and progress of a specific reindex task.
* `list_reindex` - Get information about all currently running reindex tasks.

In Technical Preview:

* `inference.embedding` - Perform dense embedding inference on the service.
* `security.clone_api_key` -  Create a copy of an existing API key with a new ID. This is intended for applications (such as Kibana) that need to create API keys on behalf of a user using an existing API key credential.

Available only in Serverless, in Technical Preview:

* `project.create_many_routing` - Create or update project routing expressions.
* `project.create_routing` - Create or update a project routing expression.
* `project.delete_routing` - Delete a project routing expression.
* `project.get_many_routing` - Get project routing expressions.
* `project.get_routing` - Get a project routing expression.

### Deleted APIs

The following APIs were in technical preview behind a feature flag and have been removed:
* `indices.delete_sample_configuration`
* `indices.get_all_sample_configuration`
* `indices.get_sample`
* `indices.get_sample_configuration`
* `indices.get_sample_stats`
* `indices.put_sample_configuration`

# 9.3.4

* Fixes header conflict when using Elasticsearch Serverless. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2984)

# 9.3.3

* Fixes NoMethodError when `Content-Type` lacks `compatible-with` parameter. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2974)

# 9.3.2

* Updates `elasticsearch-api` to the latest Elasticsearch 9.3 specification.
* Better handling of `content-type` headers when using Manticore and JRuby to avoid duplication.

# 9.3.1

## Gem

* Fixes a bug in BulkHelper when using `update` with slice. Thanks [gitviola](https://github.com/gitviola)! [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2907)

## Elasticsearch API

* Elasticsearch API code and source code documentation updated to the latest Elasticsearch 9.3 specification.

# 9.3.0

## Gem

* Tested versions of Ruby for 9.3.0: Ruby (MRI) 3.2, 3.3, 3.4, 4.0, JRuby 9.3, JRuby 9.4 and JRuby 10.

### Support for base64 indexing for vector values

Adds support for base64 ingestion of floating point arrays. You can use this by calling the client's `pack_dense_vector` function with the data to be converted to Base64 vector encoding for Bulk ingestion:

```ruby
> data = [1.0, 2.0]
=> [1.0, 2.0]
> client.pack_dense_vector(data)
=> "P4AAAEAAAAA="
```

See the [Pull Request in Elasticsearch](https://github.com/elastic/elasticsearch/pull/137072) for more information. This change introduces `base64` as a dependency.

### ES|QL Query Builder

The [Ruby ES|QL Query Builder](https://github.com/elastic/esql-ruby) [version 0.4.0](https://github.com/elastic/esql-ruby/releases/tag/v0.4.0) has been released. The recent new versions add support for several functions: `TS` for time series indices, `STATS`, `🐔`, `FORK` and `FUSE`.

## Elasticsearch API

### API updates

* `async_search.submit`, `cat.count`, `count`, `field_caps`, `indices.resolve_index`, `open_point_in_time`, `search`, `sql.query` - removes parameter `:project_routing` from query parameters, should be sent in the body.
* `cat.segments` - Adds `:expan_wildcards`, `allow_no_indices`, `ignore_throttled`, `ignore_unavailable`, `allow_closed` parameters.
* `indices.cancel_migrate_reindex`, `indices.create_from`, `indices.get_index_template`, `indices.migrate_reindex` - promoted from Techincal Preview to stable.
* `machine_learning.start_data_frame_analytics`, `machine_learning.stop_data_frame_analytics`, `machine_learning.stop_trained_model_deployment` - Request body added as a parameter.
* `machine_learning.stop_datafeed` - adds parameter `close_job`, if `true` the job associated with the datafeed is closed.
* `project.tags` - Adds `:project_routing` parameter (This API is in technical preview and is only available in Serverless).
* `transform.get_node_stats` - Adds parameters:
  * `:error_trace` - When set to `true` Elasticsearch will include the full stack trace of errors when they occur.
  * `:filter_path` - Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch.
  * `:human` - When set to `true` will return statistics in a format suitable for humans.
  * `:pretty` -  If set to `true` the returned JSON will be "pretty-formatted". Use this option for debugging only.

### New APIs

* `cat.circuit_breaker` -  Get circuit breakers statistics. (CAT APIs are only intended for human consumption using the command line or Kibana console. They are not intended for use by applications)
* `inference.put_groq` - Create an inference endpoint to perform an inference task with the `groq` service.
* `inference.put_nvidia` - Create an inference endpoint to perform an inference task with the `nvidia` service.
* `inference.put_openshift_ai` - Create an inference endpoint to perform an inference task with the `openshift_ai` service.

### New APIs in Technical Preview

* `esql.delete_view` - Deletes a stored ES|QL view.
* `esql.get_view` - Returns a stored ES|QL view.
* `esql.put_view` - Create or update an ES|QL view.
* `indices.delete_sample_configuration` - Delete the sampling configuration for the specified index.
* `indices.get_all_configuration` - Get the sampling configurations for all indices.
* `indices.get_sample` - Request for a random sample of raw documents ingested into the given index or data stream.
* `indices.get_sample_configuration` - Get the sampling configuration for the specified index.
* `indices.get_sample_stats` - Request stats for a random sample of raw documents ingested into the given index or data stream.
* `indices.put_sample_configuration` - Create or update the sampling configuration for the specified index.

# 9.2.3

* Fixes NoMethodError when `Content-Type` lacks `compatible-with` parameter. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2974)

# 9.2.2

* Updates `elasticsearch-api` to the latest Elasticsearch 9.2 specification.
* Better handling of `content-type` headers when using Manticore and JRuby to avoid duplication.

# 9.2.1

## Gem

* Fixes a bug in BulkHelper when using `update` with slice. Thanks [gitviola](https://github.com/gitviola)! [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2907)

## Elasticsearch API

* Elasticsearch API code and source code documentation updated to the latest Elasticsearch 9.2 specification.

# 9.2.0

## Gem

* Tested versions of Ruby for 9.2.0: Ruby (MRI) 3.2, 3.3, 3.4, head, JRuby 9.3, JRuby 9.4 and JRuby 10.
* Cleaned up deprecated code for code generation in `elasticsearch-api/utils`.

## Elasticsearch API

Code updated to the latest Elasticsearch 9.2 specification.

### API Updates

* `async_search.submit`, `cat.count`, `count`, `eql.search`, `field_caps`, `indices.resolve_index`. `msearch`, `msearch_template`, `open_point_in_time`, `search`, `search_mvt`, `search_template`, `sql.query` - New parameter:
  * `:project_routing`. Specifies a subset of projects to target for the search using project metadata tags in a subset of Lucene query syntax. Supported in serverless only.
* `cluster.allocation_explain` - New parameters:
  * [String] `:index` The name of the index that you would like an explanation for.
  * [Integer] `:shard` An identifier for the shard that you would like an explanation for.
  * [Boolean] `:primary` If true, returns an explanation for the primary shard for the specified shard ID.
  * [String] `:current_node` Explain a shard only if it is currently located on the specified node name or node ID.
* `get` - New parameter:
  * [Boolean] `:_source_exclude_vectors` Whether vectors should be excluded from _source
* `indices.resolve_index` - New parameter:
  * [String, Array<String>] `:mode` Filter indices by index mode - standard, lookup, time_series, etc. Comma-separated list of IndexMode. Empty means no filter.
* `search` - New parameter:
  * [Boolean] `:_source_exclude_vectors` Whether vectors should be excluded from _source.
* `security.update_settings` - New parameter:
  *  [String] `:merge_type` The mapping merge type if mapping overrides are being provided in mapping_addition.

### Breaking change - request body required

The `:body` parameter is now required in the following APIs:
* `close_point_in_time`
* `fleet.search`
* `graph.explore`
* `index_lifecycle_management.move_to_step`
* `index_lifecycle_management.put_lifecycle`
* `indices.analyze`
* `indices.put_data_lifecycle`
* `indices.put_data_stream_options`
* `indices.shrink`
* `indices.split`
* `inference.completion`
* `inference.inference`
* `inference.put_alibabacloud`
* `inference.put_amazonbedrock`
* `inference.put_amazonsagemaker`
* `inference.put_anthropic`
* `inference.put_azureaistudio`
* `inference.put_azureopenai`
* `inference.put_cohere`
* `inference.put_custom`
* `inference.put_deepseek`
* `inference.put_elasticsearch`
* `inference.put_elser`
* `inference.put_googleaistudio`
* `inference.put_googlevertexai`
* `inference.put_hugging_face`
* `inference.put_jinaai`
* `inference.put_mistral`
* `inference.put_openai`
* `inference.put_voyageai`
* `inference.put_watsonx`
* `inference.rerank`
* `inference.sparse_embedding`
* `inference.stream_completion`
* `inference.text_embedding`
* `render_search_template`
* `scripts_painless_execute`
* `snapshot_lifecycle_management.put_lifecycle`
* `terms_enum`

### New APIs

* `indices.get_data_stream_mappings` - Get mapping information for one or more data streams. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-get-data-stream-mappings).
* `indices.put_data_stream_mappings` - Update data stream mappings. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-indices-put-data-stream-mappings).
* `inference.put_ai21` - Create an inference endpoint to perform an inference task with the `ai21` service. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-ai21)
* `inference.put_contextualai` - Create an inference endpoint to perform an inference task with the `contexualai` service. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-contextualai)
* `inference.put_llama` - Create an inference endpoint to perform an inference task with the `llama` service. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-inference-put-llama)
* `project.tags` (Experimental) -  Return tags defined for the project.
* `security.get_stats` - Gather security usage statistics from all node(s) within the cluster. [Documentation](https://www.elastic.co/docs/api/doc/elasticsearch/operation/operation-security-get-stats)

# 9.1.3

## Elasticsearch API

Updates API code to the latest Elasticsearch 9.1 specification.

* Updates `:bytes` and `:time` parameters in **Cat** endpoints:
  * `cat.aliases`, `cat.allocation`, `cat.component_templates`, `cat.count`, `cat.fielddata`, `cat.health`, `cat.indices`, `cat.master`, `cat.ml_data_frame_analytics`, `cat.ml_datafeeds`, `cat.ml_jobs`, `cat.ml_trained_models`, `cat.nodeattrs`, `cat.nodes`, `cat.pending_tasks`, `cat.plugins`, `cat.recovery`, `cat.repositories`, `cat.segments`, `cat.shards`, `cat.snapshots`, `cat.tasks`, `cat.templates`, `cat.thread_pool`, `cat.transforms`:
    * Adds `:bytes` [String] - Sets the units for columns that contain a byte-size value
    * Adds `:time` [String] - Sets the units for columns that contain a time duration.
  * `cat.allocation`, `cat.fielddata`, `cat.health`, `cat.indices`, `cat.ml_data_frame_analytics`, `cat.ml_jobs`, `cat.ml_trained_models`, `cat.nodes`, `cat.recovery`, `cat.segments`, `cat.shards`:
    * Removes `:bytes` parameter.
  * `cat.indices`, `cat.ml_data_frame_analytics`, `cat.ml_datafeeds`, `cat.ml_jobs`, `cat.ml_trained_models`, `cat.nodes`, `cat.pending_tasks`, `cat.recovery`, `cat.shards`, `cat.snapshots`, `cat.tasks`, `cat.thread_pool`, `cat.transforms`:
    * Removes `:time` parameter.

* Adds available parameters to experimental **Stream** namespace APIs. Updates `streams.logs_disable`, `streams.logs_enable`, `streams.status`.
  * [Time] `:master_timeout` The period to wait for a connection to the master node.
  * [Time] `:timeout` The period to wait for a response.
  * [Boolean] `:error_trace` When set to `true` Elasticsearch will include the full stack trace of errors when they occur.
  * [String, Array<String>] `:filter_path` Comma-separated list of filters in dot notation which reduce the response returned by Elasticsearch.
  * [Boolean] `:human` When set to `true` will return statistics in a format suitable for humans.
  * [Boolean] `:pretty` If set to `true` the returned JSON will be "pretty-formatted". Only use this option for debugging.

* New parameters in `cat.segments` :
  * [String, Array<String>] `:expand_wildcards` Type of index that wildcard expressions can match.
  * [Boolean] `:allow_no_indices` If `false`, the request returns an error if any wildcard expression, index alias, or _all value targets only.
  * [Boolean] `:ignore_throttled` If `true`, concrete, expanded or aliased indices are ignored when frozen.
  * [Boolean] `:ignore_unavailable` If true, missing or closed indices are not included in the response.
  * [Boolean] `:allow_closed` If true, allow closed indices to be returned in the response otherwise if false, keep the legacy behaviour.

* `watcher.put_watch` - body is now required

# 9.1.2

* Fixes [2758](https://github.com/elastic/elasticsearch-ruby/issues/2758) - `msearch`, `bulk` and other NDJSON endpoints overriding headers for `content-type` and `accept`. [Pull Request](https://github.com/elastic/elasticsearch-ruby/pull/2759).
* Adds `transform.set_upgrade_mode`.
* Updates source code documentation from latest 9.1 Elasticsearch specification.

# 9.1.1

## Elasticsearch API

- Updates source code documentation to latest 9.1 specification.
- New API: `inference.put_amazonsagemaker`.

# 9.1.0

## Gem

Tested versions of Ruby for 9.1.0: Ruby (MRI) 3.2, 3.3, 3.4, `head`, JRuby 9.3, JRuby 9.4 and JRuby 10.

## Elasticsearch API

- Source code documentation and code has been updated with better formatting, updated links. It's also been updated to support common parameters and common cat parameters in APIs that support it (`error_trace`, `filter_path`, `human`, `pretty`). The API reference documentation can be generated with `rake doc`.

- `esql.async_query`, `esql.query` - adds `allow_partial_results` boolean parameter. If `true`, partial results will be returned if there are shard failures, but the query can continue to execute on other clusters and shards. If `false`, the query will fail if there are any failures. To override the default behavior, you can set the `esql.query.allow_partial_results` cluster setting to `false`. Server default: true.
- `indices.get_field_mapping` - removes `local` parameter.
- `synonyms.put_synonym`, `synonyms.put_synonym_rule` - add `refresh` boolean parameter. If `true`, the request will refresh the analyzers with the new synonym rule and wait for the new synonyms to be available before returning.

New APIs

- `esql.get_query` (Experimental) - Get a specific running ES|QL query information.
- `esql.list_queries` (Experimental) - Get running ES|QL queries information.
- `indices.delete_data_stream_options` - Removes the data stream options from a data stream.
- `indices.get_data_stream_options` - Get the data stream options configuration of one or more data streams.
- `indices.get_data_stream_settings` - Get setting information for one or more data streams.
- `indices.put_data_stream_options` - Update the data stream options of the specified data streams.
- `indices.put_data_stream_settings` - Update data stream settings.
- `indices.remove_block` - Remove an index block from an index.
- `inference.put_custom` - Create a custom inference endpoint.
- `inference.put_deepseek` - Create a DeepSeek inference endpoint.
- `snapshot.repository_verify_integrity` (Experimental) - Verify the integrity of the contents of a snapshot repository. NOTE: This API is intended for exploratory use by humans. You should expect the request parameters and the response format to vary in future versions.
- `streams.logs_disable` - Disable the Logs Streams feature for this cluster.
- `streams.logs_enable` - Enable the Logs Streams feature for this cluster.
- `streams.status` - Return the current status of the streams feature for each streams type.

# 9.0.4

- Source code documentation and code has been updated to support common parameters and common cat parameters in APIs that support it (`error_trace`, `filter_path`, `human`, `pretty`). The API reference documentation can be generated with `rake doc`.
- New API: `inference.put_custom`

# 9.0.3

- Adds `ccr` alias for `cross_cluster_replication` and `slm` alias for `snapshot_lifecycle_management`.
- Tested for JRuby 10.0.0.
- General updates in source code docs.

# 9.0.2

- Udpates setting 'Accept' and 'Content-Type' headers as to not duplicate or overwrite user set headers [#2666](https://github.com/elastic/elasticsearch-ruby/pull/2666).

# 9.0.1

- The request headers were updated for Elasticsearch v9: `compatible-with=9` [#2660](https://github.com/elastic/elasticsearch-ruby/pull/2660).

# 9.0.0

Ruby 3.2 and up are tested and supported for 9.0. Older versions of Ruby have reached their end of life. We follow Ruby’s own maintenance policy and officially support all currently maintained versions per [Ruby Maintenance Branches](https://www.ruby-lang.org/en/downloads/branches/). The required Ruby version is set to `2.6` to keep compatiblity wit JRuby 9.3. However, we only test the code against currently supported Ruby versions.

## Gem

The size of both `elasticsearch` and `elasticsearch-api` gems is smaller than in previous versions. Some unnecessary files that were being included in the gem have now been removed. There has also been a lot of old code cleanup for the `9.x` branch.

## Elasticsearch Serverless

With the release of `9.0`, the [Elasticsearch Serverless](https://github.com/elastic/elasticsearch-serverless-ruby) client has been discontinued. You can use this client to build your Elasticsearch Serverless Ruby applications. The Elasticsearch Serverless API is fully supported. The CI build for Elasticsearch Ruby runs tests to ensure compatibility with Elasticsearch Serverless.

## Elasticsearch API

* The source code is now generated from [`elasticsearch-specification`](https://github.com/elastic/elasticsearch-specification/), so the API documentation is much more detailed and extensive. The value `Elasticsearch::ES_SPECIFICATION_COMMIT` is updated with the commit hash of elasticsearch-specification in which the code is based every time it's generated.
* The API code has been updated for compatibility with Elasticsearch API v 9.0.
* `indices.get_field_mapping` - `:fields` is a required parameter.
* `knn_search` - This API has been removed. It was only ever experimental and was deprecated in v`8.4`. It isn't supported in 9.0, and only works when the header `compatible-with=8` is set. The search API should be used for all knn queries.
* The functions in `utils.rb` that had names starting with double underscore have been renamed to remove these (e.g. `__listify` to `listify`).
* **Namespaces clean up**: The API namespaces are now generated dynamically based on the elasticsearch-specification. As such, some deprecated namespace files have been removed from the codebase:
  * The `rollup` namespace was removed. The rollup feature was never GA-ed, it has been deprecated since `8.11.0` in favor of downsampling.
  * The `data_frame_deprecated`, `remote` namespace files have been removed, no APIs were available.
  * The `shutdown` namespace was removed. It is designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

## Scroll APIs need to send scroll_id in request body

Sending the `scroll_id` as a parameter has been deprecated since version 7.0.0. It needs to be specified in the request body for `clear_scroll` and `scroll`.

**Impact**<br>

Client code using `clear_scroll` or `scroll` APIs and the deprecated `scroll_id` as a parameter needs to be updated.

**Action**<br>

If you are using the `clear_scroll` or `scroll` APIs, and sending the `scroll_id` as a parameter, you need to update your code to send the `scroll_id` as part of the request body:
```ruby
# Before:
client.clear_scroll(scroll_id: scroll_id)
# Now:
client.clear_scroll(body: { scroll_id: scroll_id })

# Before:
client.scroll(scroll_id: scroll_id)
# Now:
client.scroll(body: { scroll_id: scroll_id })
```

## Testing

The gem `elasticsearch-api` migrated away from the Elasticsearch REST API tests and test runner in CI. We now run the [Elasticsearch Client tests](https://github.com/elastic/elasticsearch-clients-tests/) with the [Elasticsearch Tests Runner](https://github.com/elastic/es-test-runner-ruby). This gives us more control on what we're testing and makes the Buildkite build way faster in Pull Requests and scheduled builds.

## Fixes

* Some old rake tasks that were not being used have been removed. The rest were streamlined, the `es` namespace has been streamlined to make it easier to run Elasticsearch with Docker during development. The `docker` task namespace was merged into `es`.
* Elasticsearch's REST API Spec tests can still be ran with `rake test:deprecated:rest_api` and setting the corresponding value for the environment variable `TEST_SUITE` ('platinum' or 'free').
