Content-Type
to enable usage of alternative serialization. (#542)routing
parameter for the BulkIndexerItem
routing property.This is the first release using the all new elastictransport
which now lives in the elastic-transport-go repository. The goal is to allow for reuse between this and future Go clients.
Changed the Body
parameter for BulkIndexerItem
in favor of io.ReadSeeker
to lower memory consumption when using the esutil.BulkIndexer
.
Replaced the Config
option RetryOnTimeout
in favor of a new RetryOnError
function which allows to dynamically chose what error should be retried."
Adds versioning and routing options to the BulkIndexer
. Thanks to @mehran-prs and @munkyboy !
Adds CA fingerprinting. You can configure the client to only trust certificates that are signed by a specific CA certificate (CA certificate pinning) by providing a ca_fingerprint option. This will verify that the fingerprint of the CA certificate that has signed the certificate of the server matches the supplied value:
elasticsearch.NewClient(Config{
Addresses: []string{\"https://elastic:changeme@localhost:9200\"},
CertificateFingerprint: \"A6FB224A4386...\"
})
New APIs:
New Experimental API:
Changes:
true
and a compressed_definition
is provided, the request defers definition decompression and skips relevant validations.Promoted to stable:
userAgentHeader
header. Credit goes to @aleksmaus! "CompressRequestBody
config option. Thank you @bschofield for this contribution !New APIs:
New Experimental API:
Starting in v7.14.0 the client performs a required product check before the first API call is executed. This product check allows the client to establish that it’s communicating with a supported Elasticsearch cluster.
The product check requires a single HTTP request to the info
API. In most cases this request will succeed quickly and then no further product check HTTP requests will be sent.
New APIs:
New Beta API:
SnapshotRepositoryAnalyze
"POST
method when only GET
& POST
method are available to prevent goroutine leak. https://github.com/elastic/go-elasticsearch/issues/250New APIs:
FeaturesResetFeatures
IngestGeoIPStats
New experimental APIs:
ShutdownGetNode
ShutdownPutNode
ShutdownDeleteNode
New APIs:
MLDeleteTrainedModelAlias
MLPreviewDataFrameAnalytics
MLPutTrainedModelAlias
APIs promoted to stable:
TextStructureFindStructure
MLDeleteDataFrameAnalytics
MLDeleteTrainedModel
MLEvaluateDataFrame
MLExplainDataFrameAnalytics
MLGetDataFrameAnalytics
MLGetDataFrameAnalyticsStats
MLGetTrainedModels
MLGetTrainedModelsStats
MLPutDataFrameAnalytics
MLPutTrainedModel
MLStartDataFrameAnalytics
MLStopDataFrameAnalytics
MLUpdateDataFrameAnalytics
New Beta APIs:
SecurityCreateServiceToken
SecurityClearCachedServiceTokens
SecurityDeleteServiceToken
SecurityGetServiceAccounts
SecurityGetServiceCredentials
New experimental APIs:
SearchableSnapshotsCacheStats
X-Elastic-Client-Meta
HTTP header (#240)GetFeatures
within Snapshot.GetFeatures
& FeaturesGetFeatures
Search
with MinCompatibleShardNode
- the minimum compatible version that all shards involved in search should have for this request to be successful.EqlGetStatus
- Returns the status of a previously submitted async or stored Event Query Language (EQL) searchLogstash
with LogstashGetPipeline
LogstashPutPipeline
and LogstashDeletePipeline
More infoTextStructureFindStructure
- Finds the structure of a text file. The text file must contain data that is suitable to be ingested into Elasticsearch.AutoscalingGetAutoscalingPolicy
, AutoscalingPutAutoscalingPolicy
, AutoscalingDeleteAutoscalingPolicy
and AutoscalingGetAutoscalingCapacity
are promoted stable
SearchableSnapshotsStats
with WithLevel
- return stats aggregated at cluster, index or shard level.SearchableSnapshotsMount
with WithStorage
- selects the kind of local storage used to accelerate searches. experimental, and defaults to full_copy
.