Releases: elastic/go-elasticsearch
Releases · elastic/go-elasticsearch
v9.3.1
9.3.1 (2026-02-11)
Bug Fixes
- bulk_indexer: Enable instrumentation support in bulk index requests (#1243) (3300e5d)
- esutil: Avoid duplicate bulk indexer OnError callbacks (#1251) (9255720)
- esutil: Propagate context timeout while closing bulk indexer (#1254) (6a0b973)
- Prevent BulkIndexer from silently dropping items on flush failure (#1241) (0215eec)
- Typed API: Add field-level nil checks during deserialisation (#1225) (fc22640)
- Typed API: Add missing custom UnmarshalJSON methods for types with additional properties (fc22640)
v9.2.3
9.2.3 (2026-02-11)
Bug Fixes
- bulk_indexer: Enable instrumentation support in bulk index requests (#1242) (71b0b0d)
- esutil: Avoid duplicate bulk indexer OnError callbacks (#1250) (8537e89)
- esutil: Propagate context timeout while closing bulk indexer (#1253) (405af64)
- Prevent BulkIndexer from silently dropping items on flush failure (#1240) (755a9d3)
- Typed API: Add field-level nil checks during deserialisation (#1224) (59f268f)
- Typed API: Add missing custom UnmarshalJSON methods for types with additional properties (59f268f)
v8.19.3
8.19.3 (2026-02-10)
Bug Fixes
- bulk_indexer: Enable instrumentation support in bulk index requests (#1244) (55c605e)
- esutil: Avoid duplicate bulk indexer OnError callbacks (#1249) (3f5bf89)
- esutil: Propagate context timeout while closing bulk indexer (#1252) (9fe5ea8)
- Prevent BulkIndexer from silently dropping items on flush failure (#1239) (b80ae39)
- Typed API: Add field-level nil checks during deserialisation (#1223) (7f27889)
- Typed API: Add missing custom UnmarshalJSON methods for types with additional properties (7f27889)
v9.3.0
9.3.0 (2026-02-04)
⚠ BREAKING CHANGES
- Upgrade Go version from 1.23 to 1.24 (#1137)
- API: API methods and request fields that previously accepted a single string for resource identifiers (e.g., indices, names, IDs, routing, features) now require
[]string. Corresponding WithX helpers now accept variadic arguments (...string). - API: All
ExpandWildcardsrequest fields were changed fromstringto[]string, andWithExpandWildcardshelpers now accept variadic arguments (...string). - API: Routing parameters across document, search, and multi-document APIs were changed from
stringto[]string, and relatedWithRoutinghelpers now accept variadic arguments (...string). - API: Duration-based parameters previously expressed as
stringnow usetime.Duration(e.g., KeepAlive, Interval, BucketSpan). Call sites must passtime.Durationvalues. - API: ML APIs using
interface{}for start/end time parameters now requirestringvalues, removing support for arbitrary types. - API: Several top-level API methods now require
[]stringinstead ofstringfor path parameters that support multiple resources (e.g., indices, templates, data streams, transforms, repositories, privileges). - API: MonitoringBulk was refactored:
DocumentTypesupport was removed, Interval is nowtime.Duration, and required parameters were added explicitly to the method signature. - API: Some WithX functional options changed between single-value and variadic forms to match API behaviour. Existing option usage may require updates.
- API: Request struct fields were updated to reflect REST API semantics, including changes from
stringto[]stringand removal of deprecated fields. Direct struct initialization may require changes.
Features
- API: Introduce strong typing for duration values (3c657da)
- API: Support multi-value resource parameters (3c657da)
- API: Support multiple resources per request (3c657da)
- API: Update APIs to 9.3.0 (3c657da)
- Expose FlushedMs metric in BulkIndexer (#1191) (d67d0be)
- Typed API: Add
DenseVectorF32andDenseVectorBytestypes, improving indexing performance of dense vectors by up to 3x when used instead of a float32 array (f543b82) - Typed API: Update TypedAPI to latest elasticsearch-specification 9.3.0 (f543b82)
- Upgrade Go version from 1.23 to 1.24 (#1137) (05f15eb)
Bug Fixes
- API: Align request structs with Elasticsearch REST spec (3c657da)
- API: Align routing parameters with REST API (3c657da)
- API: Correct functional option cardinality (3c657da)
- API: Modernize MonitoringBulk API (3c657da)
- API: Normalize expand_wildcards handling (3c657da)
- API: Simplify ML time range parameters (3c657da)
- esutil: Handle error from Seek in BulkIndexer.writeBody (#1162) (ab7b3bb)
- Typed API: Marshal Additional Properties into
json.RawMessageinstead ofanyto avoid loss of precision (#1147) (e3e61d6)