From 408217bb83a1e1bdf2323a6b8756f2c79c69f75b Mon Sep 17 00:00:00 2001 From: "elastic-vault-github-plugin-prod[bot]" <150874479+elastic-vault-github-plugin-prod[bot]@users.noreply.github.com> Date: Wed, 26 Nov 2025 16:44:02 +0000 Subject: [PATCH] chore(9.1): release 9.1.1 --- .github/.release-please-manifest.json | 2 +- CHANGELOG.md | 127 ++++++++++++++------------ internal/version/version.go | 2 +- 3 files changed, 71 insertions(+), 60 deletions(-) diff --git a/.github/.release-please-manifest.json b/.github/.release-please-manifest.json index f5d91cebec..63e28d2b3c 100644 --- a/.github/.release-please-manifest.json +++ b/.github/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "9.1.0" + ".": "9.1.1" } diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b448d4073..1aa2ba3cbd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,36 +1,51 @@ -# 9.1.0 +# Changelog -# API +## [9.1.1](https://github.com/elastic/go-elasticsearch/compare/v9.1.0...v9.1.1) (2025-11-26) + + +### Features + +* Add Close method to BaseClient ([#1056](https://github.com/elastic/go-elasticsearch/issues/1056)) ([#1074](https://github.com/elastic/go-elasticsearch/issues/1074)) ([10500c7](https://github.com/elastic/go-elasticsearch/commit/10500c7115664038b8129cffc53589837cefb6a9)) +* Add queue size multiplier config to BulkIndexer ([#1029](https://github.com/elastic/go-elasticsearch/issues/1029)) ([#1054](https://github.com/elastic/go-elasticsearch/issues/1054)) ([4abd799](https://github.com/elastic/go-elasticsearch/commit/4abd799f95d424c8dc4f9df931ead4f6c8641541)) + + +### Bug Fixes + +* Notify items if an error occurs in bulk indexer ([#615](https://github.com/elastic/go-elasticsearch/issues/615)) ([#1058](https://github.com/elastic/go-elasticsearch/issues/1058)) ([22d2e7c](https://github.com/elastic/go-elasticsearch/commit/22d2e7c6f36b6453a6c566020d38d69c2d4f10a4)) + +## 9.1.0 + +## API * Updated APIs to 9.1.0 -# Typed API +## Typed API * Update TypedAPI to latest [elasticsearch-specification 9.1](https://github.com/elastic/elasticsearch-specification/commit/907d11a) * This release introduces a new `MethodAPI` used by the `TypedClient` which makes the client friendlier for dead code elimination. Reducing the size of the client when only a subset of the APIs are used. The old `API` structure remains available for backward compatibility, but it is now deprecated. -# 8.19.0 +## 8.19.0 -# API +## API * Updated APIs to 8.19.0 -# Typed API +## Typed API * Update TypedAPI to latest [elasticsearch-specification 8.19](https://github.com/elastic/elasticsearch-specification/commit/470b4b9) -# 9.0.1 +## 9.0.1 -# API +## API * Updated APIs to 9.0.4 -# Typed API +## Typed API * Update TypedAPI to latest [elasticsearch-specification 9.0](https://github.com/elastic/elasticsearch-specification/commit/e585438) -# 9.0.0 +## 9.0.0 * The client now requires **Go 1.23** or later. @@ -161,21 +176,21 @@ } ``` -# API +## API * Updated APIs to 9.0.0 -# Typed API +## Typed API * Update APIs to 9.0.0 ([52c473e](https://github.com/elastic/elasticsearch-specification/tree/52c473efb1fb5320a5bac12572d0b285882862fb)) -# 8.18.0 +## 8.18.0 * Update `elastictransport` to `8.7.0`. * Thanks to @zaneli, the `TypedClient` can now be used in the `BulkIndexer`. -# New +## New * This release adds a `BaseClient` constructor with no attached APIs, allowing it to be used purely as a transport layer instead of a full-featured API client. @@ -224,35 +239,35 @@ if err != nil { log.Printf("Elasticsearch version typedapi: %s\n", typedRes.Version.Int) ``` -# API +## API * Updated APIs to 8.18.0 -# Typed API +## Typed API * Update APIs to 8.18.0 ([f6a370d](https://github.com/elastic/elasticsearch-specification/tree/f6a370d0fba975752c644fc730f7c45610e28f36)) -# 8.17.1 +## 8.17.1 * Update elastictransport to 8.6.1 Thanks to @AkisAya and @jmfrees for their contributions! -# 8.17.0 +## 8.17.0 * Expose BulkIndexer total flushed bytes metric [#914](https://github.com/elastic/go-elasticsearch/pull/914) thanks to @aureleoules -# API +## API Updated APIs to 8.17.0 -# Typed API +## Typed API Update APIs to latest [elasticsearch-specification 8.17](https://github.com/elastic/elasticsearch-specification/tree/2f823ff6fcaa7f3f0f9b990dc90512d8901e5d64) -# 8.16.0 +## 8.16.0 -# API +## API * `InferenceStreamInference` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/stream-inference-api.html) * `QueryRulesTest` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/test-query-ruleset.html) @@ -260,23 +275,23 @@ Update APIs to latest [elasticsearch-specification 8.17](https://github.com/elas * `Ingest.GetIPLocationDatabase` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/get-ip-location-database-api.html) * `Ingest.PutIPLocationDatabase` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/put-ip-location-database-api.html) -# Typed API +## Typed API Update APIs to latest [elasticsearch-specification 8.16](https://github.com/elastic/elasticsearch-specification/tree/4fcf747dfafc951e1dcf3077327e3dcee9107db3) -# 8.15.0 +## 8.15.0 -# API +## API * API is generated from the Elasticsearch 8.15.0 specification. -# Typed API +## Typed API Update APIs to latest [elasticsearch-specification 8.15](https://github.com/elastic/elasticsearch-specification/tree/19027dbdd366978ccae41842a040a636730e7c10) -# 8.14.0 +## 8.14.0 -# API +## API New APIs: @@ -285,18 +300,18 @@ New APIs: * TextStructureFindFieldStructure [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/find-field-structure.html) * TextStructureFindMessageStructure [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/find-message-structure.html) -# Typed API +## Typed API New APIs: * UpdateTrainedModelDeployment [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/update-trained-model-deployment.html) -# Transport +## Transport * Fixed a deadlock in the connection pool https://github.com/elastic/elastic-transport-go/issues/20 -# 8.13.1 +## 8.13.1 -# Typed API +## Typed API Update APIs to latest [elasticsearch-specification 8.13](https://github.com/elastic/elasticsearch-specification/tree/5fb8f1ce9c4605abcaa44aa0f17dbfc60497a757) @@ -314,9 +329,9 @@ Canonical`.Request()` method was unaffected. * `Ml.ValidateDetector` * `SearchApplication.Put` -# 8.13.0 +## 8.13.0 -# API +## API New APIS: @@ -339,7 +354,7 @@ New APIS: * `Indices.ResolveCluster` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-cluster-api.html) * `Security.QueryUser` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-query-user.html) -# Typed API +## Typed API * `indices.ResolveCluster` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-resolve-cluster-api.html) * `textstructure.TestGrokPattern` [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/test-grok-pattern.html) @@ -348,14 +363,14 @@ Thanks to @pakio, transport now has an optional pool based compression option. [ And to @tblyler for fixing a very subtle memory leak in the `BulkIndexer`. #797 -# 8.12.1 +## 8.12.1 * Fix: ticker memory leak in bulk indexer due to internal flush call resetting the ticker. #797 * Fix: Scroll now uses the body to pass the scroll_id. #785 * Add: generated UnmarshalJSON for Requests to allow injecting payloads using aliases. * Fix: `put_synonym_rule` was not working due to a type issue in the [Elasticsearch API Specification](https://github.com/elastic/elasticsearch-specification/pull/2407). -# 8.12.0 +## 8.12.0 ## Client @@ -412,13 +427,13 @@ More about what you can expect in the [Semantic Conventions for Elasticsearch](h * `GetSettings` [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-get-settings.html) * `UpdateSettings` [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-settings.html) -# 8.11.1 +## 8.11.1 ## Typed API * Fix https://github.com/elastic/go-elasticsearch/issues/756 preventing from settings indices in `indices.PutSettings` -# 8.11.0 +## 8.11.0 ## API @@ -434,19 +449,19 @@ More about what you can expect in the [Semantic Conventions for Elasticsearch](h * Mandatory URL parameters are not exposed as functions anymore as they already exist in the constructor. -# New Compatibility Policy +## New Compatibility Policy Starting from version `8.12.0`, this library follow the Go language [policy](https://go.dev/doc/devel/release#policy). Each major Go release is supported until there are two newer major releases. For example, Go 1.5 was supported until the Go 1.7 release, and Go 1.6 was supported until the Go 1.8 release. If you have any questions or concerns, please do not hesitate to reach out to us. -# 8.10.1 +## 8.10.1 ## Typed API Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elastic/elasticsearch-specification/commit/3b09f9d8e90178243f8a340a7bc324aab152c602) -# 8.10.0 +## 8.10.0 ## API **Experimental APIs for internal use** @@ -474,7 +489,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas **Beta** * [Synonyms](https://www.elastic.co/guide/en/elasticsearch/reference/current/synonyms-apis.html) -# 8.9.0 +## 8.9.0 ## API **New API** @@ -501,7 +516,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas * Fixed a deserialization issue for `Property` & `Analyzer` #696 -# 8.8.2 +## 8.8.2 ## Typed API @@ -509,7 +524,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas * Fixed double-quoted strings in deserialization for unions normalized as string. #684 * Fixed handling of `core.Get` response when the index did not exist. #678 -# 8.7.0 +## 8.7.0 ## API @@ -536,7 +551,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas * `.Raw` now takes a reader as input. * User defined values such as `_source` in `Hits` are now `json.RawMessage` to highlight they later deserializable nature. -# 8.6.0 +## 8.6.0 ## API @@ -551,7 +566,7 @@ Update APIs to latest [elasticsearch-specification 8.10](https://github.com/elas Improvements were made to the BulkIndexer memory usage to allow better handling under burst use cases. Thanks to @christos68k and @rockdaboot ! -# 8.5.0 +## 8.5.0 ## API @@ -593,7 +608,7 @@ In addition, a bug was fixed preventing the use of wildcards in index names, and The Typed API remains in `alpha` stage while its development continues. -# 8.4.0 +## 8.4.0 ## API @@ -613,11 +628,11 @@ This new API is still in `alpha` stage and will be release alongside the existin A few examples of standard use-cases can be found in the [TypedAPI section of the documentation](https://www.elastic.co/guide/en/elasticsearch/client/go-api/master/typedapi.html). -# 8.4.0-alpha.2 +## 8.4.0-alpha.2 This second prerelease of the 8.4.0 updates the API for the client and fixes the serialization for types using [additional properties](https://github.com/elastic/elasticsearch-specification/blob/main/docs/behaviors.md#additionalproperties--additionalproperty). -# 8.4.0-alpha.1 +## 8.4.0-alpha.1 This prerelease introduces a new typed API generated from the [elasticsearch-specification](https://github.com/elastic/elasticsearch-specification). This generation from the common specification allows us to provide a complete API which uses an exhaustive hierarchy of types reflecting the possibilities given by Elasticsearch. @@ -664,7 +679,7 @@ While being different, the new API uses all the existing layers that were built Feedback is very welcome, play with it, use it, let us know what you think! -# 8.3.0 +## 8.3.0 ## API @@ -679,7 +694,7 @@ Feedback is very welcome, play with it, use it, let us know what you think! * `Security.HasPrivilegesUserProfile` (Experimental API) [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-has-privileges-user-profile.html) -# 8.2.0 +## 8.2.0 ## Client * Fixed a serialisation error for `retry_on_conflict` in the BulkIndexer. Thanks to @lpflpf for the help! @@ -699,7 +714,7 @@ Feedback is very welcome, play with it, use it, let us know what you think! * `Security.suggestUserProfiles` (Experimental API) [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/master/security-api-suggest-user-profile.html) * `Security.updateUserProfileData` (Experimental API) [Documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-user-profile-data.html) -# 8.1.0 +## 8.1.0 ## API * API is generated from the Elasticsearch 8.1.0 specification. @@ -715,7 +730,7 @@ Feedback is very welcome, play with it, use it, let us know what you think! * `OidcAuthenticate`, `OidcLogout` and `OidcPrepareAuthentication` [see documentation](https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api.html#security-openid-apis) * `TransformResetTransform` -# 8.0.0 +## 8.0.0 ## Client * The client now uses `elastic-transport-go` dependency which lives in its [own repository](https://github.com/elastic/elastic-transport-go/). @@ -726,7 +741,3 @@ Feedback is very welcome, play with it, use it, let us know what you think! ## API * API is generated from the Elasticsearch 8.0.0 specification. - - - - diff --git a/internal/version/version.go b/internal/version/version.go index 6425177665..ccdbc071f9 100644 --- a/internal/version/version.go +++ b/internal/version/version.go @@ -21,4 +21,4 @@ package version const Client = Version // Version is the version of the client. -const Version = "9.1.1-SNAPSHOT" +const Version = "9.1.1"