Skip to content

Commit 1ad2626

Browse files
authored
Add release notes for 8.0.9 (#7517)
1 parent 27a1b37 commit 1ad2626

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
[[release-notes-8.0.9]]
2+
== Release notes v8.0.9
3+
4+
[discrete]
5+
=== Bug fixes
6+
7+
- https://github.com/elastic/elasticsearch-net/pull/7446[#7446] Fix byte properties
8+
in index stats types. (issue: https://github.com/elastic/elasticsearch-net/issues/7445[#7445])
9+
10+
[discrete]
11+
=== Enhancements
12+
13+
- https://github.com/elastic/elasticsearch-net/pull/7467[#7467] Source serialization
14+
always sends fractional format for double and floats. (issue: https://github.com/elastic/elasticsearch-net/issues/7051[#7051])
15+
16+
[discrete]
17+
=== Breaking changes
18+
19+
[discrete]
20+
==== Source serialization of float and double properties
21+
22+
By default, when serializing `double` and `float` properties, the `System.Text.Json`
23+
serializer uses the "G17" format when serializing double types. This format omits
24+
the decimal point and/or trailing zeros if they are not required for the data to
25+
roundtrip. This is generally correct, as JSON doesn't specify a type for numbers.
26+
27+
However, in the case of source serialization, mappings for numeric properties may
28+
be incorrectly inferred if trailing zeros are omitted. In this release, we have
29+
included a new custom converter for `float` and `double` types when serialized using
30+
the default source serializer. These converters ensure that at least one precision
31+
digit is included after a decimal point, even for round numbers.
32+
33+
You may therefore observe changes to the serialized source document after
34+
upgrading to this version.

docs/release-notes/release-notes.asciidoc

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
[discrete]
77
== Version 8.0
88

9+
* <<release-notes-8.0.9,Release notes v8.0.9>>
910
* <<release-notes-8.0.8,Release notes v8.0.8>>
1011
* <<release-notes-8.0.7,Release notes v8.0.7>>
1112
* <<release-notes-8.0.6,Release notes v8.0.6>>
@@ -17,6 +18,7 @@
1718
* <<release-notes-8.0.0,Release notes v8.0.0>>
1819

1920
include::breaking-change-policy.asciidoc[]
21+
include::release-notes-8.0.9.asciidoc[]
2022
include::release-notes-8.0.8.asciidoc[]
2123
include::release-notes-8.0.7.asciidoc[]
2224
include::release-notes-8.0.6.asciidoc[]

0 commit comments

Comments
 (0)