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
@@ -51,11 +50,11 @@ The client also provides a convenient set of [helpers](client-helpers.md) for ta
51
50
To get started, try this walkthrough: [Ingest data with Python](docs-content://manage-data/ingest/ingesting-data-from-applications/ingest-data-with-python-on-elasticsearch-service.md)
The [Python DSL module](../reference/elasticsearch-dsl.md) offers a convenient and idiomatic way to write and manipulate queries.
57
56
58
-
## {{es}} version compatibility[_compatibility]
57
+
## Version compatibility
59
58
60
59
Language clients are **forward compatible**: each client version works with equivalent and later minor versions of the **same or next major** version of {{es}}. For full compatibility, the client and {{es}} minor versions should match.
61
60
@@ -66,20 +65,34 @@ Language clients are **forward compatible**: each client version works with equi
66
65
67
66
Compatibility does not imply feature parity. New {{es}} features are supported only in equivalent client versions. For example, an 8.12 client fully supports {{es}} 8.12 features and works with 8.13 without breaking, but it does not support new {{es}} 8.13 features. An 8.13 client fully supports {{es}} 8.13 features.
68
67
69
-
{{es}} language clients are also **backward compatible** across minor versions, with default distributions and without guarantees.
68
+
{{es}} language clients are also **backward compatible** across minor versions, with default distributions and without guarantees.
70
69
71
-
### Major version upgrades
70
+
##Upgrade to a new major version
72
71
73
72
:::{important}
74
73
To upgrade to a new major version, first [upgrade {{es}}](docs-content://deploy-manage/upgrade.md), then upgrade the Python client.
75
74
:::
76
75
77
-
As of version 8.0, {{es}} offers a [compatibility mode](elasticsearch://reference/elasticsearch/rest-apis/compatibility.md) for smoother upgrades. In compatibility mode, you can upgrade your {{es}} cluster to the next major version while continuing to use your existing client during the transition.
76
+
As of version 8.0, {{es}} offers a [REST API compatibility mode](elasticsearch://reference/elasticsearch/rest-apis/compatibility.md) for smoother upgrades. In compatibility mode, you can upgrade your {{es}} cluster to the next major version while continuing to use your existing client during the transition.
77
+
78
+
### How compatibility mode works
79
+
80
+
In the Python client, compatibility mode is **always enabled**. You don't need to configure it manually or set an environment variable. The client automatically sends compatibility headers with API requests so that it can communicate with the next major version of {{es}}.
78
81
79
-
For example, if you're upgrading {{es}} from 8.x to 9.x, you can continue to use the 8.x Python client during and after the {{es}} server upgrade, with the exception of [breaking changes](../release-notes/breaking-changes.md).
82
+
In compatibility mode, your Python client applications can continue running during an upgrade without restart or redeployment. For example, during a rolling upgrade of your {{es}} cluster from 8.x to 9.x, your 8.x Python client continues working throughout the process without any changes or intervention.
80
83
81
-
In the Python client, compatibility mode is always enabled.
84
+
**What to expect in compatibility mode:**
85
+
86
+
If you're using the Python client in compatibility mode to work with the next major version of {{es}}:
87
+
88
+
* API calls affected by [breaking changes](../release-notes/breaking-changes.md) might fail or behave differently.
89
+
* API calls unaffected by breaking changes continue to work as expected.
90
+
* New features from the next major version of {{es}} are not available until you upgrade the client itself.
91
+
92
+
Although compatibility mode allows your Python client to keep working without intervention, you should upgrade the client when feasible. Even if you don't need the newest {{es}} features, upgrading the client ensures you receive the latest bug fixes and improvements.
82
93
83
94
:::{tip}
84
95
To support working with multiple client versions, the Python client is also released under the package names `elasticsearch8` and `elasticsearch9` (to prevent name collisions).
85
-
:::
96
+
:::
97
+
98
+
For guidance on upgrading your {{es}} deployment, refer to the [{{es}} upgrade documentation](docs-content://deploy-manage/upgrade.md) and [upgrade paths](docs-content://deploy-manage/upgrade.md#upgrade-paths).
0 commit comments