2.4.7
Behavioural Breaking Change
- #2367 404s on
Get<T>()andDelete<T>()(and async variants) now return.IsValidastrueand deserialize the response, setting.Found. This aligns the behaviour of 2.x with 1.x and 5.x. The implications of this are:
- when issuing a delete, if the delete actually deletes a document or the document to delete does not exist,
.IsValidistrue - when issuing a get where
.IsValidis true,.Foundshould also be checked to determine if the document existed
Features
BulkAll is designed to parallelize bulk requests to Elasticsearch by iterating a lazily constructed collection of POCO types and partitioning into multiple concurrent bulk requests. It includes simple logic for automatic backoff of requests when documents failed to be indexed due to HTTP 429 response errors and retrying in a configurable number of times in such cases.
Enhancements
- #2371 / #2323 Include the nested identity when performing
inner_hitson anestedtype - #2370 Infer the index name and type name from
TwithSuggest<T>() - #2309 / #2310 When a
ReindexOnServerResponsecomes back as 400 status code, deserialize the response so that Failures is populated with more details for why things failed.
Bug Fixes
- #2362 Add
max_boundary_scanto highlight fields - #2373 Fix script serialization when performing bulk updates
- #2357 Correct Script serialization on bulk update operation
- #2331 Fix
SuffixExpressionVisitorto allow multiple calls of.AppendSuffix() - #2319 / #2321 Fix issue where field expressions were incorrectly cached when a dynamic value and a suffix expression were used
- #2308 the
Tookfield was incorrectly mapped as anintvalue on some responses, instead oflong. Since the type cannot be changed (it would break binary compatibility), another field has been introduced,TookAsLong, that will hold the value returned from Elasticsearch;Tookwill also contain the value and for values greater thanint,Tookwill beint.MaxValue.Tookis marked withObsoleteattribute to highlight this to client consumers andTookis mapped aslongin NEST 5.x. thanks @maeserichar 👍
Deprecations and Removals
- #2346 Mark properties removed in 5.0 with
ObsoleteAttribute - #2297 Mark
MissingQuerywithObsoleteAttributeas removed in 5.0 - #2293 Mark
IndexNameon property mappings withObsoleteAttributeas removed in 5.0