Skip to content

Serverless 1.1.1

Compare
Choose a tag to compare
@flobernd flobernd released this 10 Jul 14:01
· 38 commits to serverless since this release
9df36db

What's Changed

  • Regenerate client using the latest spec by @flobernd in #8245
    • Fixes deserialization of DynamicTemplate
    • Fixes deserialization of some "single-or-many" types
    • General specification driven improvements and bug-fixes
  • Generate untagged variants by @flobernd in #8249
    • This adds proper support for:
      • RangeQuery
      • DistanceFeatureQuery
      • DecayFunction
  • Implement common request query parameters for request descriptors by @flobernd in #8257
    • This change enables the use of common query parameters such as filter_path, human and pretty in the fluent API (descriptor-style) syntax
  • Update Elastic.Transport to 0.4.20 by @flobernd in #8261
    • Fixes a DoS vulnerability in the transiend System.Text.Json dependency

Full Changelog: serverless-1.1.0...serverless-1.1.1

Breaking Changes

RangeQuery is no longer a union. Usage changes from:

var response = await client.SearchAsync<Person>(q => q.Query(q => q.Range(new RangeQuery(new NumberRangeQuery("age"!))
{
    Gt = 42
})));

to:

var response = await client.SearchAsync<Person>(q => q.Query(q => q.Range(new NumberRangeQuery("age"!)
{
    Gt = 42
})));

or alternatively using a full descriptor based syntax:

await client.SearchAsync<Person>(q => q.Query(q => q.Range(r => r.NumberRange(n => n.Field("age"!).Gte(42)))));

The built-in range query types are: NumberRangeQuery, DateRangeQuery and TermRangeQuery. For an untyped version that accepts all object types, you can additionally use UntypedRangeQuery.