|
| 1 | +[[release_notes_716]] |
| 2 | +=== 7.16 Release notes |
| 3 | + |
| 4 | +[discrete] |
| 5 | +==== Client |
| 6 | + |
| 7 | +- Adds the `delay_on_retry` parameter, a value in milliseconds to wait between each failed connection, thanks https://github.com/DinoPullerUqido[DinoPullerUqido]! https://github.com/elastic/elasticsearch-ruby/pull/1521[Pull Request] and https://github.com/elastic/elasticsearch-ruby/pull/1523[backport]. |
| 8 | +- Adds *CA fingerprinting*. You can configure the client to only trust certificates that are signed by a specific CA certificate (CA certificate pinning) by providing a `ca_fingerprint` option. This will verify that the fingerprint of the CA certificate that has signed the certificate of the server matches the supplied value: |
| 9 | + |
| 10 | +[source,ruby] |
| 11 | +------------------------------------ |
| 12 | +ca_fingerprint = '64F2593F...' |
| 13 | +client = Elasticsearch::Client.new( |
| 14 | + host: 'https://elastic:changeme@localhost:9200', |
| 15 | + transport_options: { ssl: { verify: false } }, |
| 16 | + ca_fingerprint: ca_fingerprint |
| 17 | +) |
| 18 | +------------------------------------ |
| 19 | +The verification will be run once per connection. |
| 20 | + |
| 21 | +- Fixes compression. When `compression` is set to `true`, the client will now gzip the request body properly and use the appropiate headers. Thanks https://github.com/johnnyshields[johnnyshields]! https://github.com/elastic/elasticsearch-ruby/pull/1478[Pull Request] and https://github.com/elastic/elasticsearch-ruby/pull/1526[backport]. |
| 22 | + |
| 23 | +[discrete] |
| 24 | +==== API |
| 25 | + |
| 26 | +- Cleaned up some deprecated code. |
| 27 | +- `count` - The API is documented as using `GET`, but it supports both GET and POST on the Elasticsearch side. So it was updated to only use `POST` when there's a body present, or else use `GET`. Elasticsearch would still accept a body with `GET`, but to be more semantically correct in the clients we use `POST` when there's a body. |
| 28 | +- `delete_index_template` was updated to support the `ignore_404` parameter to ignore 404 errors when attempting to delete a non-existing template. |
| 29 | +- `ingest.put_pipeline` adds new parameter `if_version`: Required version for optimistic concurrency control for pipeline updates. |
| 30 | +- `ml.put_trained_model`: adds new parameter `defer_definition_decompression`: If set to `true` and a `compressed_definition` is provided, the request defers definition decompression and skips relevant validations. |
| 31 | +- `nodes.hot_threads` adds new parameter `sort`: The sort order for 'cpu' type (default: total) (options: cpu, total). |
| 32 | +- `open_point_in_time`: `keep_alive` is now a required parameter. |
| 33 | +- `search_mvt`: adds new parameter `track_total_hits`: 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. |
| 34 | +- `transform.preview_transform`: adds new parameter `transform_id`. Body is now optional and the API will use `GET` or `POST` depending on the presence of a body. |
| 35 | + |
| 36 | +*APIs promoted from experimental to stable since last version:* |
| 37 | + |
| 38 | +- `fleet.global_checkpoints` |
| 39 | +- `get_script_context` |
| 40 | +- `get_script_language` |
| 41 | +- `indices.resolve_index` |
| 42 | +- `monitoring.bulk` |
| 43 | +- `rank_eval` |
| 44 | +- `searchable_snapshots.mount` |
| 45 | +- `searchable_snapshots.stats` |
| 46 | +- `security.clear_cached_service_tokens` |
| 47 | +- `security.create_service_token` |
| 48 | +- `security.delete_service_token` |
| 49 | +- `security.get_service_accounts` |
| 50 | +- `security.get_service_credentials` |
| 51 | +- `shutdown.delete_node` |
| 52 | +- `shutdown.get_node` |
| 53 | +- `shutdown.put_node` |
| 54 | +- `terms_enum` |
| 55 | + |
| 56 | +*New APIs* |
| 57 | + |
| 58 | +- `fleet.mseach` |
| 59 | +- `fleet.search` |
| 60 | +- `indices.modify_data_stream` |
| 61 | +- `ml.infer_trained_model_deployment` |
| 62 | +- `ml.start_trained_model_deployment` |
| 63 | +- `ml.stop_trained_model_deployment` |
| 64 | +- `migration.get_feature_upgrade_status` |
| 65 | +- `migration.post_feature_upgrade_status` |
| 66 | +- `security.enroll_kibana` |
| 67 | +- `security.enroll_node` |
| 68 | +- `transform.updgrade_transforms` |
0 commit comments