github elastic/elasticsearch-net 2.4.6

8 years ago

Features

Enhancements

  • #2279 Support overloaded UpdateByQuery() fluent methods that infer Indices and Types from generic parameter type T
  • #2247 Enable conveniently overriding JsonSerializerSettings without the need to implement a custom serializer. Thanks for the PR @jonyadamit 👍

Bug Fixes

  • #2261 FieldLookup now includes a Routing property. ty @seanwm
  • #2178 Fix support for custom similarities using CustomSimilarity object or .Custom() fluent method on SimilaritiesDescriptor
  • #2170 Resolve to the smallest whole time unit when working with DateMath as it does not support fractional values. For example, TimeSpan.FromHours(25) will serialize to 25h as opposed to round to 1d or fractional value 1.04d. ty @emmekappa
  • #2209 Improve boolean combinatorial logic when dealing with bool queries with many clauses
  • #2168 Mark .Highlights on SearchResponse<T> as obsolete, to be removed in 5.x. It's a leaky abstraction when searching over multiple types that contain the same document id for different types - this will throw an exception. Highlights can be enumerated using
foreach (var hit in searchResponse.HitsMetaData.Hits)
{
    foreach (var highlight in hit.Highlights)
    {
        // do something with highlightHit
        var highlightHit = highlight.Value;
    }
}
  • #2125 Allow use of custom highlighters (expert level option). HighlightField now contains a CustomType string property that can be used to specify a custom highlighter. Core highlighters can still be specified using Type property.
  • #2119 Allow use of per field custom similarity (expert level option). ElasticsearchPropertyAttributeBase and associated mapping methods allow the use of a custom similiarity through a CustomSimilarity string property (on attributes and mapping objects) and through the .Similairy(string) fluent mapping method. Core similarities can still be specified.
  • #2274 Fix NullReferenceException when deserializing a multi-bucket aggregation that contains an empty bucket.
  • #2263 Do not use IsoDateTimeConverter to handle DateTimeOffset. Take a look at #2268 for how DateTime and DateTimeOffset are serialized within NEST.

Don't miss a new elasticsearch-net release

NewReleases is sending notifications on new releases.