Go Elasticsearch Versions Save

The official Go client for Elasticsearch

v8.13.1

1 month ago

Typed API

Update APIs to latest elasticsearch-specification 8.13

Fixes

This patch release brings a fix to the initialisation of the Request in endpoints which would prevent using the shortcuts for fields. Canonical.Request() method was unaffected.

  • Autoscaling.PutAutoscalingPolicy
  • Indices.Downsample
  • Indices.PutSettings
  • Indices.SimulateTemplate
  • Inference.PutModel
  • Logstash.PutPipeline
  • Ml.ValidateDetector
  • SearchApplication.Put

v8.13.0

1 month ago

API

New APIS:

  • ConnectorSecretGet

  • ConnectorSecretPost

  • ConnectorSecretPut

  • ConnectorSecretDelete

  • ConnectorUpdateIndexName

  • ConnectorUpdateNative

  • ConnectorUpdateStatus

  • ConnectorUpdateAPIKeyDocumentID

  • ConnectorUpdateServiceDocumentType

  • EsqlAsyncQuery Documentation

  • EsqlAsyncQueryGet Documentation

  • ProfilingFlamegraph Documentation

  • ProfilingStacktraces Documentation

  • TextStructureTestGrokPattern Documentation

  • Indices.ResolveCluster Documentation

  • Security.QueryUser Documentation

Typed API

Thanks to @pakio, transport now has an optional pool based compression option. https://github.com/elastic/elastic-transport-go/pull/19 And to @tblyler for fixing a very subtle memory leak in the BulkIndexer. #797

v8.12.1

2 months ago
  • 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.

Many thanks to @tblyler, @frkntplglu and @HaraldNordgren for their contribution!

v8.12.0

4 months ago

Client

Golang version

The client now requires Golang version 1.20

OpenTelemetry

The client now provides OpenTelemetry integration. This integration can be enabled in the config using the elasticsearch.NewOpenTelemetryInstrumentation. Once set up, the provided context will be used to record spans with useful information about the request being made to the server.

More about what you can expect in the Semantic Conventions for Elasticsearch.

BulkIndexer

if_seq_no & if_primary_term are now supported thanks to @benjyiw #783

API

  • SimulateIngest
  • ConnectorCheckIn
  • ConnectorDelete
  • ConnectorGet
  • ConnectorLastSync
  • ConnectorList
  • ConnectorPost
  • ConnectorPut
  • ConnectorSyncJobCancel
  • ConnectorSyncJobCheckIn
  • ConnectorSyncJobDelete
  • ConnectorSyncJobError
  • ConnectorSyncJobGet
  • ConnectorSyncJobList
  • ConnectorSyncJobPost
  • ConnectorSyncJobUpdateStats
  • ConnectorUpdateConfiguration
  • ConnectorUpdateError
  • ConnectorUpdateFiltering
  • ConnectorUpdateName
  • ConnectorUpdatePipeline
  • ConnectorUpdateScheduling

Typed API

v8.11.1

5 months ago

Typed API

v8.11.0

6 months ago

API

Experimental APIs

Typed API

  • Mandatory URL parameters are not exposed as functions anymore as they already exist in the constructor.

New Compatibility Policy

Starting from version 8.12.0, this library follow the Go language 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.

v8.10.1

7 months ago

Typed API

Update APIs to latest elasticsearch-specification 8.10

v8.10.0

8 months ago

API

Experimental APIs for internal use

  • FleetDeleteSecret
  • FleetGetSecret
  • FleetPostSecret

Exprimental APIs

QueryRulesetList

Stable APIs

Security.GetSettings Security.UpdateSettings

Typed API

Exprimental APIs

QueryRuleset.List

Technical Preview

Beta

v8.9.0

9 months ago

API

New API

Experimental APIs

Typed API

  • Propagated request fields towards the endpoint for ease of access, taking priority over same-name query string fields.
  • Added a stub for Do methods on endpoints that only support a boolean response such as core.exists.
  • NDJSON endpoints support with custom serialization like core.bulk.
  • Link to endpoints documentation in API index to better display and ease of use.

fixes

  • Fixed a deserialization issue for Property & Analyzer #696

v8.8.2

10 months ago

Typed API

  • Fixed deserialization for Suggest in search responses.
  • 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