github elastic/elasticsearch-net 8.14.4

latest releases: serverless-1.1.17, 8.16.2, 8.16.1...
4 months ago

What's Changed

  • Generate untagged variants by @flobernd in #8249
    • This adds proper support for:
      • RangeQuery
      • DistanceFeatureQuery
      • DecayFunction

Full Changelog: 8.14.3...8.14.4

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.

Don't miss a new elasticsearch-net release

NewReleases is sending notifications on new releases.