Elasticsearch Java Client 9.4.0
Discover what changed in the 9.4.0 version of the Java client.
This version presents many updates to existing fields that were wrongly mapped, or incomplete. Here is the complete list of changes:
From generic json to specific type
elasticsearch.inference.CustomResponseParams
jsonParser: modified fromjson.JsonDatatoMap
elasticsearch.inference.CustomServiceSettings
headers: modified fromjson.JsonDatatoMap, now requiredinputType: modified fromjson.JsonDatatoMap, now requiredqueryParameters: modified fromjson.JsonDatatoList, now requiredsecretParameters: modified fromjson.JsonDatatoMap
elasticsearch.inference.CustomTaskSettings
parameters: modified fromjson.JsonDatatoMap, now required
elasticsearch.inference.OpenAITaskSettings
headers: modified fromjson.JsonDatatoMap, now required
From String to Enum
elasticsearch.inference.ContentObject
type: modified fromStringtoelasticsearch.inference.ContentType
elasticsearch.searchable_snapshots.MountRequest
storage: modified fromStringtoelasticsearch.searchable_snapshots.mount.StorageOption
Serialization changes
From this version of the client, CSV type URL parameters with value null will no longer be serialized as null, and will be instead filtered out.
More information in the relevant PR #1222.
Type removals
elasticsearch.indices.get_all_sample_configuration.IndexSamplingConfiguration: removed
elasticsearch.indices.DeleteSampleConfigurationRequest: removed
elasticsearch.indices.DeleteSampleConfigurationResponse: removed
elasticsearch.indices.get_sample.RawDocument: removed
elasticsearch.indices.GetAllSampleConfigurationRequest: removed
elasticsearch.indices.GetAllSampleConfigurationResponse: removed
elasticsearch.indices.GetSampleConfigurationRequest: removed
elasticsearch.indices.GetSampleConfigurationResponse: removed
elasticsearch.indices.GetSampleRequest: removed
elasticsearch.indices.GetSampleResponse: removed
elasticsearch.indices.GetSampleStatsRequest: removed
elasticsearch.indices.GetSampleStatsResponse: removed
elasticsearch.indices.PutSampleConfigurationRequest: removed
elasticsearch.indices.PutSampleConfigurationResponse: removed
elasticsearch.indices.SamplingConfiguration: removed
elasticsearch.inference.TextEmbeddingByteResult: removed
elasticsearch.inference.TextEmbeddingResult: removed
elasticsearch.security.ApiKeyManagedBy: removed
elasticsearch.streams.status.LogsStatus: removed
Other changes
elasticsearch._types.aggregations.FieldDateMath
value: modified fromDoubletoLong
elasticsearch.cluster.ComponentTemplate
componentTemplate: modified fromelasticsearch.cluster.ComponentTemplateNodetoelasticsearch.cluster.ComponentTemplateNodeWithRollover
elasticsearch.cluster.ComponentTemplateSummary
lifecycle: modified fromelasticsearch.indices.DataStreamLifecycleWithRollovertoelasticsearch.indices.DataStreamLifecycle
elasticsearch.indices.get_index_template.IndexTemplateItem
indexTemplate: modified fromelasticsearch.indices.IndexTemplatetoelasticsearch.indices.IndexTemplateWithRollover
elasticsearch.indices.IndexTemplateSummary
lifecycle: modified fromelasticsearch.indices.DataStreamLifecycleWithRollovertoelasticsearch.indices.DataStreamLifecycle
elasticsearch.security.authenticate.AuthenticateApiKey
managedBy: modified fromelasticsearch.security.ApiKeyManagedBytoelasticsearch.security.CredentialManagedBy
elasticsearch.streams.StreamsStatusResponse
logs: modified fromelasticsearch.streams.status.LogsStatustoelasticsearch.streams.status.StreamStatus
Less generic exception messages
Introduced with #1213, adding more information taken from ElasticsearchException's fields to the main error message.
For example, instead of all shards failed the error message will be all shards failed - Failed to parse query ["test"].
Nothing was deprecated in this version of the client.