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
Drop OpenSearch lines the project no longer patches (1.3.x-2.18.x) from
the v5 compatibility matrix, leaving the supported set at 2.19.x and 3.x
per the 12-month support policy agreed in opensearch-project#856. Removes the dead <2.12
password fallback and the <=2.17.x node-join race workaround, and
flattens the matrix to a plain version list now that every supported
line runs as a 3-node cluster.
Signed-off-by: Sean Chittenden <sean.chittenden@crowdstrike.com>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -160,6 +160,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
160
160
161
161
### Changed
162
162
163
+
- Trim the CI compatibility matrix to the currently-patched OpenSearch set (2.19.x and 3.x) per the 12-month support policy; older lines (1.3.x - 2.18.x) are no longer part of the tested matrix and the 4.x client remains their supported path. No client code change ([#856](https://github.com/opensearch-project/opensearch-go/issues/856))
163
164
-**BREAKING**: Module path is now `github.com/opensearch-project/opensearch-go/v5`. Update import paths from `/v4` to `/v5`; the in-source `opensearchapi.X` package qualifier is unchanged
164
165
-**BREAKING**: The code-generated API package is now the canonical `opensearchapi/`, replacing the hand-written v4 package (formerly previewed at `v5preview/opensearchapi/`). Req/Resp/Params types are fully typed and generated from the OpenAPI spec. See [`opensearchapi/MIGRATING.md`](opensearchapi/MIGRATING.md) for the field-level delta (`Indices` -> `Index`, `DocumentID` -> `ID`, optional `Params` becoming `*Params`, shared parameters moving into embedded `TimeoutParams`/`DebugParams`, `BulkResp.Items` becoming `[]BulkItem`) ([#650](https://github.com/opensearch-project/opensearch-go/issues/650))
165
166
-**BREAKING**: The default Router is now on by default. `opensearchapi.NewClient`/`NewDefaultClient`, `opensearch.NewClient`, and `opensearchtransport.New` inject `opensearchtransport.NewDefaultRouter` (and enable on-start discovery) unless `OPENSEARCH_GO_ROUTER=false`. In v4 the router was opt-in via `OPENSEARCH_GO_ROUTER=true` ([#816](https://github.com/opensearch-project/opensearch-go/issues/816))
@@ -209,6 +210,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
209
210
- Mark `opensearch.ToPointer` as deprecated; it remains fully functional but will be removed in a future major version. Once the module's go directive moves to 1.26, callers can drop the helper entirely in favor of native `new(value)` literal syntax (e.g. `new(false)`)
210
211
211
212
### Removed
213
+
212
214
- Remove backport.yml and dependabot_pr.yml as we are not using backport app anymore
213
215
- Stop emitting `opensearchapi.Client` sub-client fields that have no operations routed to them. `cmd/osgen` now emits a sub-client only when at least one operation targets it, dropping the previously-empty `Script`, `ComponentTemplate`, `IndexTemplate`, `Template`, and `DataStream` fields. Index-template and data-stream operations are reached through `client.Indices.*` (e.g. `client.Indices.PutIndexTemplate`, `client.Indices.CreateDataStream`); stored-script operations remain top-level on `Client`
Copy file name to clipboardExpand all lines: COMPATIBILITY.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,20 @@
3
3
4
4
## Compatibility with OpenSearch
5
5
6
-
The below matrix shows the compatibility of the [`opensearch-go`](https://pkg.go.dev/github.com/opensearch-project/opensearch-go) with versions of [`OpenSearch`](https://opensearch.org/downloads.html#opensearch).
6
+
The below matrix shows the compatibility of the [`opensearch-go`](https://pkg.go.dev/github.com/opensearch-project/opensearch-go) with versions of [`OpenSearch`](https://opensearch.org/downloads.html#opensearch). Version ranges are inclusive of both endpoints.
7
7
8
8
| Client Version | OpenSearch Version |
9
9
| -------------- | ------------------ |
10
10
| 1.x.0 | 1.x |
11
-
| 2.x.0 | 1.3.13-2.11.0 |
12
-
| 3.x.0 | 1.3.13-2.12.0 |
13
-
| 4.x.0 | 1.3.20-3.0.0 |
11
+
| 2.x.0 | 1.3.13 - 2.11.0 |
12
+
| 3.x.0 | 1.3.13 - 2.12.0 |
13
+
| 4.x.0 | 1.3.20 - 2.x |
14
+
| 4.6.1 | 1.3.20 - 3.6.0 |
15
+
| 5.x.0 | 2.19 - 3.x |
16
+
17
+
The 4.x client remains the supported path for OpenSearch lines that the OpenSearch project no longer patches (1.3.x through 2.18.x).
18
+
19
+
Starting with 5.x, the officially supported (CI-tested) set tracks the OpenSearch releases still receiving patches within the last 12 months at each `opensearch-go` release: every release of the current major plus the latest release of the previous major. Today that is 2.19.x and all of 3.x. This set is re-evaluated at each release. The client may still function against older servers, but those lines are not part of the tested matrix; 4.x remains the documented fallback for them.
Copy file name to clipboardExpand all lines: UPGRADING.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,12 @@
30
30
31
31
## Upgrading to >= 5.0.0
32
32
33
+
### Supported OpenSearch versions
34
+
35
+
The 5.x client is supported (and CI-tested) against the OpenSearch releases still receiving patches within the last 12 months at each `opensearch-go` release: every release of the current major plus the latest release of the previous major. Today that is OpenSearch 2.19.x and all of 3.x. This set is re-evaluated at each release.
36
+
37
+
If you run an OpenSearch line the project no longer patches (1.3.x through 2.18.x), stay on the 4.x client, which continues to support those versions. The 5.x client may still function against older servers, but those lines are not part of the tested matrix. See [`COMPATIBILITY.md`](COMPATIBILITY.md) for the full matrix.
38
+
33
39
### Partial Failure Errors (Config.Errors)
34
40
35
41
Version 5.0.0 introduces typed partial-failure errors and a per-category bitmask that controls which categories surface as Go errors. OpenSearch returns HTTP 200 for many operations that partially succeed (bulk item failures, shard failures on search, replica failures on writes). The new model turns those partial failures into typed errors that callers can dispatch on; idiomatic partial error handling is shown below.
0 commit comments