Releases: elastic/go-elasticsearch
7.17.1
Client
- Fixed serialization of the
routing
parameter for theBulkIndexerItem
routing property.
8.0.0
Client
- The client now uses
elastic-transport-go
dependency which lives in its own repository. - With the knewly extracted transport, the
retryOnTimeout
has been replaced with aretryOnError
callback. This allows to select more finely which error should be retried by the client. BulkIndexerItem
Body
field is now anio.ReadSeeker
allowing reread without increasing memory consumption.BulkIndexerItem
know correctly uses therouting
property instead of the deprecated_routing
.
API
- API is generated from the Elasticsearch 8.0.0 specification.
7.17.0
Client
- Fixed a race condition on metrics in transport #397, thanks @mainliufeng !
- The client will now return an error if a required arguments is passed as a nil value. #201
- API is compatible with Elasticsearch 7.17.0
8.0.0-alpha
Client
Elastic Transport
- 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.
API
- Changed the
Body
parameter forBulkIndexerItem
in favor ofio.ReadSeeker
to lower memory consumption when using theesutil.BulkIndexer
. - Replaced the
Config
optionRetryOnTimeout
in favor of a newRetryOnError
function which allows to dynamically chose what error should be retried.
7.16.0
Client
-
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..."
})
API
-
New APIs:
- ModifyDataStream, documentation
- TransformUpgradeTransforms, documentation
- Migration.GetFeatureUpgradeStatus, documentation
- Migration.PostFeatureUpgrade, documentation
-
New Experimental API:
- FleetSearch, documentation
- FleetMsearch, documentation
-
Changes:
- DeleteByQuery
- Removed _source, _source_excludes, _source_includes parameters.
- UpdateByQuery
- Removed _source, _source_excludes, _source_includes parameters.
- OpenPointInTime
- The parameter keep_alive is now required.
- SearchMvt
- Added TrackTotalHits, Indicate if the number of documents that match the query should be tracked. A number can also be specified, to accurately track the total hit count up to the number.
- IngestPutPipeline
- Added WithIfVersion, required version for optimistic concurrency control for pipeline updates.
- IndicesGetIndexTemplate
- WithName, a pattern that returned template names must match.
- NodesHotThreads
- WithSort, the sort order for 'cpu' type (default: total).
- MLPutTrainedModel
- WithDeferDefinitionDecompression, if set to
true
and acompressed_definition
is provided, the request defers definition decompression and skips relevant validations.
- WithDeferDefinitionDecompression, if set to
- TransformDeleteTransform
- WithTimeout, controls the time to wait for the transform deletion.
- TransformPutTransform
- WithTimeout, controls the time to wait for the transform to start.
- TransformUpdateTransform
- WithTimeout, controls the time to wait for the update.
- DeleteByQuery
-
Promoted to stable:
- FleetGlobalCheckpoints
- GetScriptContext
- GetScriptLanguages
- IndicesResolveIndex
- MonitoringBulk
- RankEval
- SearchableSnapshotsMount
- SearchableSnapshotsStats
- SecurityClearCachedServiceTokens
- SecurityCreateServiceToken
- SecurityDeleteServiceToken
- SecurityGetServiceAccounts
- SecurityGetServiceCredentials
- ShutdownDeleteNode
- ShutdownGetNode
- ShutdownPutNode
- TermsEnum
7.15.1
Client
- Allow User-Agent override via the
userAgentHeader
header. Credit goes to @aleksmaus!
7.15.0
Client
- Body compression can now be enabled in the client via the
CompressRequestBody
config option. Thank you @bschofield for this contribution !
API
-
New APIs:
- Security
- QueryAPIKeys documentation
- Security
-
New Experimental API:
- Indices
- DiskUsage documentation
- FieldUsageStats documentation
- Nodes
- ClearRepositoriesMeteringArchive documentation
- GetRepositoriesMeteringInfo documentation
- SearchMvt documentation
- Indices
7.14.0
Client
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.
API
-
New APIs:
- ILM
- MigrateToDataTiers
- ML
- ResetJob
- SAML
- SamlAuthenticate
- SamlCompleteLogout
- SamlInvalidate
- SamlLogout
- SamlPrepareAuthentication
- SamlServiceProviderMetadata
- SQL
- DeleteAsync
- GetAsync
- GetAsyncStatus
- ILM
-
New Beta API:
- TermsEnum, see documentation
7.13.1
X-Pack
- New API:
SnapshotRepositoryAnalyze
7.13.0
Client
- Adds support for compatibility header for Elasticsearch. If the environment variable 'ELASTIC_CLIENT_APIVERSIONING' is set to true or 1, the client will send the headers Accept and Content-Type with the following value: application/vnd.elasticsearch+json;compatible-with=7.
- Favor
POST
method when onlyGET
&POST
method are available to prevent goroutine leak. #250 - Filter master only nodes in discovery. #256
API
-
New APIs:
FeaturesResetFeatures
IngestGeoIPStats
-
New experimental APIs:
ShutdownGetNode
ShutdownPutNode
ShutdownDeleteNode
X-Pack
-
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
,