github elastic/elasticsearch-net 8.19.24

latest release: 9.5.0
5 hours ago

What's Changed

Warning

This release regenerates the client against the latest specification and contains a few breaking changes. Please review the list below before upgrading.

  • Make custom JSON converters safe for multi-segment readers by @flobernd in #8923
    • The hand-written date, duration, stringified and fractional numeric converters no longer fail when the Utf8JsonReader is constructed over a multi-segment ReadOnlySequence<byte>, which unblocks sequence-based deserializers such as a streaming reader over a PipeReader
    • The existing single-segment typed deserialization path is unchanged
  • Regenerate client by @flobernd in #8922 and #8945
    • FrequentItemSets aggregations now round-trip correctly. The generated variant used an empty discriminator where the converter expected frequent_item_sets, so the property always read back as null
    • Role-template queries in index privileges now deserialize to RoleTemplateQuery. Previously the union had no discriminator between the two object arms, so any object-shaped query was unconditionally read as a regular QueryDsl.Query
    • SpanQuery.SpanGap now returns null instead of a default KeyValuePair when the union holds a different variant, so SpanGap is not null is no longer always true
    • New basic query parameter on GetTransformStats, which returns a cheaper subset of statistics by skipping operations_behind, changes_last_detected_at, last_search_time and the checkpoint timestamps
    • New settings and response fields: IndexSettings.Unassigned exposing index.unassigned.node_left.delayed_timeout, OnScriptError on runtime field definitions, and Allocations shard-allocation statistics on node stats
    • Breaking: TextIndexPrefixes.MinChars and MaxChars become optional (int?) and the two-argument TextIndexPrefixes(int, int) constructor is removed. This also fixes reading responses that omit either value, which previously failed the required-member check
    • Breaking: JinaAIServiceSettings.ElementType is renamed to EmbeddingType, matching the embedding_type wire name
    • Breaking: NodeInfoDiscover.SeedProviders changes from IReadOnlyCollection<string> to ICollection<string>, and a scalar seed_providers value from the node info API now deserializes instead of throwing

Full Changelog: 8.19.23...8.19.24

Don't miss a new elasticsearch-net release

NewReleases is sending notifications on new releases.