Features
- #2112 Support
ReindexRethrottle
when running against Elasticsearch 2.4.0, to allow throttling of longer running tasks such as Reindex and UpdateByQuery APIs. - #2231 Support
field_masking_span
queries. Mapped toSpanFieldMaskingQuery
to align with names of other span queries.
Enhancements
- #2279 Support overloaded
UpdateByQuery()
fluent methods that infer Indices and Types from generic parameter typeT
- #2247 Enable conveniently overriding
JsonSerializerSettings
without the need to implement a custom serializer. Thanks for the PR @jonyadamit 👍
Bug Fixes
- #2261
FieldLookup
now includes aRouting
property. ty @seanwm - #2178 Fix support for custom similarities using
CustomSimilarity
object or.Custom()
fluent method onSimilaritiesDescriptor
- #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 to25h
as opposed to round to1d
or fractional value1.04d
. ty @emmekappa - #2209 Improve boolean combinatorial logic when dealing with bool queries with many clauses
- #2168 Mark
.Highlights
onSearchResponse<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 aCustomType
string property that can be used to specify a custom highlighter. Core highlighters can still be specified usingType
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 aCustomSimilarity
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 handleDateTimeOffset
. Take a look at #2268 for howDateTime
andDateTimeOffset
are serialized within NEST.