Skip to content

Add versioning section to readme and docs #8580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,20 @@ or
**for a free trial of Elastic Cloud**.

The .NET client for Elasticsearch provides strongly typed requests and responses
for Elasticsearch APIs. It delegates protocol handling to the
[Elastic.Transport](https://github.com/elastic/elastic-transport-net) library,
for Elasticsearch APIs. It delegates protocol handling to the
[Elastic.Transport](https://github.com/elastic/elastic-transport-net) library,
which takes care of all transport-level concerns (HTTP connection establishment
and pooling, retries, etc.).

## Versioning

The *major* and *minor* version parts of the Elasticsearch .NET client are dictated by the version of the Elasticsearch server.

> [!WARNING]
> This means that the Elasticsearch .NET client **does not** strictly follows semantic versioning!
>
> Although we try to avoid this as much as possible, it can happen that a *minor* or even *patch* version contains breaking changes (see also: [breaking changes policy](https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/breaking-changes-policy.html)). Please always check the [release notes](https://github.com/elastic/elasticsearch-net/releases) before updating the client package.

## Compatibility

Language clients are **forward compatible**:
Expand Down
34 changes: 34 additions & 0 deletions docs/reference/breaking-changes-policy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
mapped_pages:
- https://www.elastic.co/guide/en/elasticsearch/client/net-api/current/breaking-changes-policy.html
---

# Breaking changes policy [breaking-changes-policy]

The .NET API Client source code is generated from a [formal specification of the Elasticsearch API](https://github.com/elastic/elasticsearch-specification). This API specification is large, and although it is tested against hundreds of Elasticsearch test files, it may have discrepancies with the actual API that result in issues in the .NET API Client.

Fixing these discrepancies in the API specification results in code changes in the .NET API Client, and some of these changes can require code updates in your applications.

This section explains how these breaking changes are considered for inclusion in .NET API Client releases.

## Breaking changes in patch releases [_breaking_changes_in_patch_releases]

Some issues in the API specification are properties that have an incorrect type, such as a `long` that should be a `string`, or a required property that is actually optional. These issues can cause the .NET API Client to not work properly or even throw exceptions.

When a specification issue is discovered and resolved, it may require code updates in applications using the .NET API Client. Such breaking changes are considered acceptable, *even in patch releases* (e.g. 7.17.0 → 7.17.1), as they introduce stability to APIs that may otherwise be unusable.

## Breaking changes in minor releases [_breaking_changes_in_minor_releases]

Along with these bug fixes, the API specification is constantly refined, more precise type definitions are introduced to improve developer comfort and remove ambiguities. The specification of often-used APIs is fairly mature, so these changes happen generally on less often used APIs. These changes can also cause breaking changes requiring code updates which are considered *acceptable in minor releases* (e.g. 8.0 → 8.1).

## Breaking changes in major releases [_breaking_changes_in_major_releases]

Major releases (e.g. 8.x → 9.x) can include larger refactorings of the API specification and the framework underlying the .NET API Client. These refactorings are considered carefully and done only when they unlock new important features or new developments.

## Elasticsearch API stability guarantees [_elasticsearch_api_stability_guarantees]

All Elasticsearch APIs have stability indicators, which imply potential changes. If an API is `stable` only additional non-breaking changes are added. In case of `experimental` APIs, breaking changes can be introduced any time, which means that these changes, will also be reflected in the .NET API Client.

## Breaking changes by release

For more information, refer to the [](../release-notes/breaking-changes.md).
12 changes: 12 additions & 0 deletions docs/reference/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ The .NET {{es}} client is built on the Elastic Transport library, which provides
* Connection management and load balancing across all available nodes.
* Request retries and dead connections handling.

## Versioning [versioning]

The *major* and *minor* version parts of the Elasticsearch .NET client are dictated by the version of the Elasticsearch server.

:::{warning}

This means that the Elasticsearch .NET client **does not** strictly follows semantic versioning!

Although we try to avoid this as much as possible, it can happen that a *minor* or even *patch* version contains breaking changes (see also: [breaking changes policy](./breaking-changes-policy.md)). Please always check the [release notes](https://github.com/elastic/elasticsearch-net/releases) before updating the client package.

:::

## {{es}} version compatibility [_es_version_compatibility]

Language clients are **forward compatible**:
Expand Down
3 changes: 2 additions & 1 deletion docs/reference/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ toc:
children:
- file: troubleshoot/audit-trail.md
- file: troubleshoot/debug-information.md
- file: troubleshoot/debug-mode.md
- file: troubleshoot/debug-mode.md
- file: breaking-changes-policy.md
Loading