You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `timeout`, `randomize_hosts`, `host_info_callback`, `sniffer_timeout`, `sniff_on_connection_fail` and `maxsize` parameters were deprecated in elasticsearch-py 8.0 and are now removed from `Elasticsearch.__init__()`.
21
+
For more information, check [PR #2840](https://github.com/elastic/elasticsearch-py/pull/2840).
22
+
23
+
**Impact**<br> These parameters were removed in favor of more descriptive versions. Using any of these parameters will prevent instantiating the Elasticsearch client.
24
+
25
+
**Action**<br> These parameters can be replaced as follows:
26
+
*`timeout` is now `request_timeout`
27
+
*`randomize_hosts` is now `randomize_nodes_in_pool`
28
+
*`host_info_callback` is now `sniffed_node_callback`
29
+
*`sniffer_timeout` is now `min_delay_between_sniffing`
30
+
*`sniff_on_connection_fail` is now `sniff_on_node_failure`
31
+
*`maxsize` is now `connection_per_node`
32
+
::::
33
+
34
+
::::{dropdown} Remove deprecated url_prefix and use_ssl host keys
35
+
When instantiating a new client, `hosts` can be specified as a dictionary. The `url_prefix` and `use_ssl` keys are no longer allowed.
36
+
For more information, check [PR #2797](https://github.com/elastic/elasticsearch-py/pull/2797).
37
+
38
+
**Impact**<br>
39
+
Using any of these parameters will prevent instantiating the Elasticsearch client.
40
+
41
+
**Action**<br>
42
+
The parameters can be replaced as follows:
43
+
*`use_ssl` isn't needed, as a scheme is required since elasticsearch-py 8.0 (`http` or `https`)
44
+
*`url_prefix` should be replaced with `path_prefix`, which is more descriptive. This functionality allows you to deploy Elasticsearch under a specific path, such as `http://host:port/path/to/elasticsearch`, instead of the default root path (`http://host:port/`)
45
+
::::
46
+
47
+
::::{dropdown} Remove APIs
48
+
Elasticsearch 9 removed the kNN search and Unfreeze index APIs.
49
+
50
+
**Action**<br>
51
+
* The kNN search API has been replaced by the `knn` option in the search API since Elasticsearch 8.4.
52
+
* The Unfreeze index API was deprecated in Elasticsearch 7.14 and has been removed in Elasticsearch 9.
Upgrade to Elasticsearch 9 before using elasticsearch-py 9.0.0 or later. Using elasticsearch-py 9.0.0 on an Elasticsearch 8 server will fail.
26
+
Since language clients are forward-compatible, you should first upgrade Elasticsearch, then the Elasticsearch client. See the [compatibility documentation](/reference/index.md#_compatibility) for more details.
* Autogenerate DSL field classes from schema ([#2780](https://github.com/elastic/elasticsearch-py/pull/2780))
29
41
* Improve DSL documentation examples with class-based queries and type hints ([#2857](https://github.com/elastic/elasticsearch-py/pull/2857))
30
42
* Document the use of `param()` in Python DSL methods ([#2861](https://github.com/elastic/elasticsearch-py/pull/2861))
31
43
* Migrate documentation from AsciiDoc to Markdown format ([#2806](https://github.com/elastic/elasticsearch-py/pull/2806))
32
44
* Document use of sub-clients ([#2798](https://github.com/elastic/elasticsearch-py/pull/2798))
33
-
* Document how to making API calls ([#2843](https://github.com/elastic/elasticsearch-py/pull/2843))
45
+
* Document how to make API calls ([#2843](https://github.com/elastic/elasticsearch-py/pull/2843))
* Remove min_compatible_shard_node from Search and Async Search Submit APIs
39
-
* Remove local parameter from cat alias, Alias exists, and Get alias APIs
40
-
* Remove `verbose` from Index segments API
41
-
* Remove `include_model_definition` from Get trained model configuration info API
42
-
* Remove `wait_for_active_shards` from experimental Get field usage stats API
43
-
* Support soft-deletes in connectors:
44
-
* Add `hard` to Delete connector API
45
-
* Add `include_deleted` to Get and List Connector APIs
46
-
* Add `master_timeout` to Migrate to data tiers routing APIs
47
-
* Add `master_timeout` to the Alias exists and Get alias APIs.
48
-
* Add `expand_wildcards` to Create snapshot API
49
-
* Rename incorrect `access_token` to `token` in Logout of OpenID Connect API
50
-
* Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elastic Inference Service (EIS), Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
51
-
* Add Elastic Inference Service (EIS) chat completion API
52
-
* Add Reindex legacy backing indices APIs
53
-
* Add Create an index from a source index API
54
-
* Add `include_source_on_error` to Create, Index, Update and Bulk APIs
55
-
* Add Stop async ES|QL query API
56
-
* Add `timeout` to Resolve Cluster API
57
-
* Add `adaptive_allocations` body field to Start and Update a trained model deployment API
58
-
* Rename `index_template_subtitutions` to `index_template_substitutions` in Simulate data ingestion API* Add `if_primary_term`, `if_seq_no`, `op_type`, `require_alias` and `require_data_stream` to Create API
59
-
* Add `max_concurrent_shard_requests` to Open point in time API
60
-
* Add `local` and `flat_settings` to Check index templates API
61
-
* Add `reopen` to Update index settings API
62
-
* Add `resource` to Reload search analyzer API
63
-
* Add `lazy` to Roll over to a new index API
64
-
* Add `cause` and `create` to Simulate index template APIs
65
-
* Add Elastic Inference Service (EIS) chat completion
66
-
* Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elastic Inference Service (EIS), Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
67
-
* Update DSL
68
-
* Add `ignore_malformed`, `script`, `on_script_error` and `time_series_dimension` to Boolean field
69
-
* Add `index` to GeoShape field
70
-
* Add `search_inference_id` to SemanticText field
71
-
72
-
### Features and enhancements [elasticsearch-python-client-900-features-enhancements]
73
-
74
-
### Fixes [elasticsearch-python-client-900-fixes]
47
+
48
+
### APIs
49
+
50
+
* Remove deprecated `/_knn_search` API
51
+
* Remove Unfreeze an index API
52
+
* Remove `min_compatible_shard_node` from Search and Async Search Submit APIs
53
+
* Remove local parameter from cat alias, Alias exists, and Get alias APIs
54
+
* Remove `verbose` from Index segments API
55
+
* Remove `include_model_definition` from Get trained model configuration info API
56
+
* Remove `wait_for_active_shards` from experimental Get field usage stats API
57
+
* Support soft-deletes in connectors:
58
+
* Add `hard` to Delete connector API
59
+
* Add `include_deleted` to Get and List Connector APIs
60
+
* Add `master_timeout` to Migrate to data tiers routing APIs
61
+
* Add `master_timeout` to the Alias exists and Get alias APIs.
62
+
* Add `expand_wildcards` to Create snapshot API
63
+
* Rename incorrect `access_token` to `token` in Logout of OpenID Connect API
64
+
* Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elastic Inference Service (EIS), Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
65
+
* Add Elastic Inference Service (EIS) chat completion API
66
+
* Add Reindex legacy backing indices APIs
67
+
* Add Create an index from a source index API
68
+
* Add `include_source_on_error` to Create, Index, Update and Bulk APIs
69
+
* Add Stop async ES|QL query API
70
+
* Add `timeout` to Resolve Cluster API
71
+
* Add `adaptive_allocations` body field to Start and Update a trained model deployment API
72
+
* Rename `index_template_subtitutions` to `index_template_substitutions` in Simulate data ingestion API
73
+
* Add `if_primary_term`, `if_seq_no`, `op_type`, `require_alias` and `require_data_stream` to Create API
74
+
* Add `max_concurrent_shard_requests` to Open point in time API
75
+
* Add `local` and `flat_settings` to Check index templates API
76
+
* Add `reopen` to Update index settings API
77
+
* Add `resource` to Reload search analyzer API
78
+
* Add `lazy` to Roll over to a new index API
79
+
* Add `cause` and `create` to Simulate index template APIs
80
+
* Add inference APIs: Alibaba Cloud AI Search, Amazon Bedrock, Anthropic, Azure AI Studio, Azure OpenAI, Cohere, Elasticsearch, ELSER, Google AI Studio, Google Vertex AI, Hugging Face, Jina AI, Mistral, OpenAI, and Voyage AI
81
+
82
+
### DSL
83
+
* Add `ignore_malformed`, `script`, `on_script_error` and `time_series_dimension` to Boolean field
0 commit comments