Skip to content

Releases: elastic/go-elasticsearch

8.8.2

05 Jul 12:11
d7c2dd8
Compare
Choose a tag to compare

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

8.8.0

25 May 17:20
6b959bf
Compare
Choose a tag to compare

7.17.10

03 May 15:20
559ea47
Compare
Choose a tag to compare

Transport

  • Fixed an issue with subdirectory in url during retry. (#657)
  • Fixed a deadlock in transport (#603 & #640)

8.7.1

02 May 15:35
d3392de
Compare
Choose a tag to compare

Typed API

  • This release include fixes for responses deserialization. #654 #655

8.7.0

30 Mar 15:57
d28715c
Compare
Choose a tag to compare

API

  • ML.DeleteJob: Added WithDeleteUserAnnotations. Should annotations added by the user be deleted.
  • ML.ResetJob: Added WithDeleteUserAnnotations. Should annotations added by the user be deleted.
  • ML.StartTrainedModelDeployment: Added WithPriority. The deployment priority.
  • TransformGetTransformStats: Added WithTimeout. Controls the time to wait for the stats.
  • TransformStartTransform: Added WithFrom. Restricts the set of transformed entities to those changed after this time.

New APIs

TransformScheduleNowTransform documentation.
HealthReport documentation.

Typed API

  • Inclusion of responses structures.

Changes

  • Do method on endpoints now return a typed response, one per endpoint.
  • Perform method added on endpoints, returns http.Response as did Do.
  • Elasticsearch exceptions are now handled as types.ElasticsearchError with .As and .Is methods.
  • .Raw now takes a reader as input.
  • User defined values such as _source in Hits are now json.RawMessage to highlight they later deserializable nature.

AdditionalProperties, like the ones found in multi-bucket aggregations, are not yet supported.

8.6.0

11 Jan 15:15
3804ea7
Compare
Choose a tag to compare

API

  • ML.StartTrainedModelDeployment: Added WithPriority

New APIs

  • ML.UpdateTrainedModelDeployment: Updates certain properties of trained model deployment.

Client

BulkIndexer

Improvements were made to the BulkIndexer memory usage to allow better handling under burst use cases. Thanks to @christos68k and @rockdaboot !

8.5.0

17 Nov 17:20
3de72ba
Compare
Choose a tag to compare

API

  • ML.StartTrainedModelDeployment: Description of NumberOfAllocations has been changed in "The total number of allocations this model is assigned across machine learning nodes".
  • Security.GetAPIKey: Added WithLimitedBy boolean parameter. Flag to show the limited-by role descriptors of API Keys.
  • Security.GetUser: Added WithProfileUID boolean parameter. Flag to retrieve profile uid (if exists) associated to the user.
  • Security.GetUserProfile: Changed the description of uid parameter, a comma-separated list of unique identifier for user profiles.
  • Security.QueryAPIKeys: Added WithLimitedBy boolean parameter. Flag to show the limited-by role descriptors of API Keys.
  • TextStructureFindStructure: Added EcsCompatibility string parameter. Optional parameter to specify the compatibility mode with ECS Grok patterns - may be either 'v1' or 'disabled'.

Promoted to stable

  • ML.InferTrainedModel
  • ML.PutTrainedModelDefinitionPart
  • ML.PutTrainedModelVocabulary
  • ML.StartTrainedModelDeployment
  • ML.StopTrainedModelDeployment
  • Security.activateUserProfile
  • Security.DisableUserProfile
  • Security.EnableUserProfile
  • Security.GetUserProfile
  • Security.HasPrivilegesUserProfile
  • Security.SuggestUserProfiles
  • Security.UpdateUserProfileData

New APIs

Typed API

Following multiple feedbacks we decided to remove the builder API for the type tree.

In its place, work has started to further simplify the type tree by removing redundant type aliases. The API also now comes with a helper package named some that allows to call for inline pointers on primitive types.

In addition, a bug was fixed preventing the use of wildcards in index names, and enums are now extensible by default.

The Typed API remains in alpha stage while its development continues.

7.17.7

26 Oct 15:09
0058b20
Compare
Choose a tag to compare

Client

  • Added the option to override the Content-Type to enable usage of alternative serialization. (#542)
  • API is compatible with Elasticsearch 7.17.7

8.4.0

24 Aug 16:14
bd65481
Compare
Choose a tag to compare

API

  • get, mget and search added force_synthetic_source: Should this request force synthetic _source? Use this to test if the mapping supports synthetic _source and to get a sense of the worst case performance. Fetches with this enabled will be slower the enabling synthetic source natively in the index.
  • ML.StartTrainedModelDeployment added cache_size: A byte-size value for configuring the inference cache size. For example, 20mb.
  • Snapshot.Get added sort, size, order, from_sort_value, after, offset and slm_policy_filter. More on these in the documentation.

New API

Typed API

As highlighted in the release not for the 8.4.0-alpha.1, this release marks the beginning of the newly arrived TypedClient.

This new API is still in alpha stage and will be release alongside the existing esapi.

A few examples of standard use-cases can be found in the TypedAPI section of the documentation.

8.4.0-alpha.2

18 Aug 09:48
a67c372
Compare
Choose a tag to compare
8.4.0-alpha.2 Pre-release
Pre-release

This second prerelease of the 8.4.0 updates the API for the client and fixes the serialization for types using additional properties.