The official Go client for Elasticsearch
Update APIs to latest elasticsearch-specification 8.13
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
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
indices.ResolveCluster
Documentation
textstructure.TestGrokPattern
Documentation
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
Many thanks to @tblyler, @frkntplglu and @HaraldNordgren for their contribution!
The client now requires Golang version 1.20
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.
if_seq_no
& if_primary_term
are now supported thanks to @benjyiw #783
SimulateIngest
ConnectorCheckIn
ConnectorDelete
ConnectorGet
ConnectorLastSync
ConnectorList
ConnectorPost
ConnectorPut
ConnectorSyncJobCancel
ConnectorSyncJobCheckIn
ConnectorSyncJobDelete
ConnectorSyncJobError
ConnectorSyncJobGet
ConnectorSyncJobList
ConnectorSyncJobPost
ConnectorSyncJobUpdateStats
ConnectorUpdateConfiguration
ConnectorUpdateError
ConnectorUpdateFiltering
ConnectorUpdateName
ConnectorUpdatePipeline
ConnectorUpdateScheduling
Esql.Query
documentation
Fleet.PostSecret
Inference
documentation
DeleteModel
documentation
GetModel
documentation
Inference
documentation
PutModel
documentation
SearchApplication
GetSettings
documentation
UpdateSettings
documentation
indices.PutSettings
Experimental APIs
EsqlQuery
documentation
InferenceDeleteModel
documentation
InferenceGetModel
documentation
InferenceInference
documentation
InferencePutModel
documentation
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.
New API
Cluster.Info
Documentation
Experimental APIs
QueryRulesetGet
Documentation
QueryRulesetDelete
Documentation
QueryRulesetPut
Documentation
SearchApplicationRenderQuery
Documentation
Security.CreateCrossClusterAPIKey
Documentation
Security.UpdateCrossClusterAPIKey
Documentation
core.exists
.core.bulk
.fixes
Property
& Analyzer
#696