Skip to content

Commit e576497

Browse files
author
elasticsearchmachine
committed
Update docs for v8.16.0 release
1 parent 12ff76a commit e576497

File tree

3 files changed

+702
-16
lines changed

3 files changed

+702
-16
lines changed

docs/reference/migration/migrate_8_16.asciidoc

Lines changed: 190 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,196 @@ Before upgrading to 8.16, review these changes and take the described steps
2222
to mitigate the impact.
2323

2424
[discrete]
25-
[[breaking_816_locale_change]]
26-
==== JDK locale database change
25+
[[breaking_816_analysis_changes]]
26+
==== Analysis changes
2727

28-
{es} 8.16 changes the version of the JDK that is included from version 22 to version 23. This changes
29-
the locale database that is used by Elasticsearch from the _COMPAT_ database to the _CLDR_ database.
30-
This can result in significant changes to custom textual date field formats,
31-
and calculations for custom week-date date fields.
28+
[[set_lenient_to_true_by_default_when_using_updateable_synonyms]]
29+
.Set lenient to true by default when using updateable synonyms
30+
[%collapsible]
31+
====
32+
*Details* +
33+
When a `synonym` or `synonym_graph` token filter is configured with `updateable: true`, the default `lenient`
34+
value will now be `true`.
3235
33-
For more information see <<custom-date-format-locales,custom date formats>>.
36+
*Impact* +
37+
`synonym` or `synonym_graph` token filters configured with `updateable: true` will ignore invalid synonyms by
38+
default. This prevents shard initialization errors on invalid synonyms.
39+
====
40+
41+
[discrete]
42+
[[breaking_816_mapping_changes]]
43+
==== Mapping changes
44+
45+
[[jdk_locale_database_change]]
46+
.JDK locale database change
47+
[%collapsible]
48+
====
49+
*Details* +
50+
{es} 8.16 changes the version of the JDK that is included from version 22 to version 23. This changes the locale database that is used by Elasticsearch from the COMPAT database to the CLDR database. This change can cause significant differences to the textual date formats accepted by Elasticsearch, and to calculated week-dates.
51+
52+
If you run {es} 8.16 on JDK version 22 or below, it will use the COMPAT locale database to match the behavior of 8.15. However, starting with {es} 9.0, {es} will use the CLDR database regardless of JDK version it is run on.
53+
54+
*Impact* +
55+
This affects you if you use custom date formats using textual or week-date field specifiers. If you use date fields or calculated week-dates that change between the COMPAT and CLDR databases, then this change will cause Elasticsearch to reject previously valid date fields as invalid data. You might need to modify your ingest or output integration code to account for the differences between these two JDK versions.
56+
57+
Starting in version 8.15.2, Elasticsearch will log deprecation warnings if you are using date format specifiers that might change on upgrading to JDK 23. These warnings are visible in Kibana.
58+
59+
For detailed guidance, refer to <<custom-date-format-locales,Differences in locale information between JDK versions>> and the https://ela.st/jdk-23-locales[Elastic blog].
60+
====
61+
62+
[discrete]
63+
[[breaking_816_es_ql_changes]]
64+
==== ES|QL changes
65+
66+
[[esql_entirely_remove_meta_functions]]
67+
.ESQL: Entirely remove META FUNCTIONS
68+
[%collapsible]
69+
====
70+
*Details* +
71+
Removes an undocumented syntax from ESQL: META FUNCTION. This was never
72+
reliable or really useful. Consult the documentation instead.
73+
74+
*Impact* +
75+
Removes an undocumented syntax from ESQL: META FUNCTION
76+
====
77+
78+
[discrete]
79+
[[breaking_816_rest_api_changes]]
80+
==== REST API changes
81+
82+
[[reworking_rrf_retriever_to_be_evaluated_during_rewrite_phase]]
83+
.Reworking RRF retriever to be evaluated during rewrite phase
84+
[%collapsible]
85+
====
86+
*Details* +
87+
In this release (8.16), we have introduced major changes to the retrievers framework
88+
and how they can be evaluated, focusing mainly on compound retrievers
89+
like `rrf` and `text_similarity_reranker`, which allowed us to support full
90+
composability (i.e. any retriever can be nested under any compound retriever),
91+
as well as supporting additional search features like collapsing, explaining,
92+
aggregations, and highlighting.
93+
94+
To ensure consistency, and given that this rework is not available until 8.16,
95+
`rrf` and `text_similarity_reranker` retriever queries would now
96+
throw an exception in a mixed cluster scenario, where there are nodes
97+
both in current or later (i.e. >= 8.16) and previous ( <= 8.15) versions.
98+
99+
As part of the rework, we have also removed the `_rank` property from
100+
the responses of an `rrf` retriever.
101+
102+
*Impact* +
103+
- Users will not be able to use the `rrf` and `text_similarity_reranker` retrievers in a mixed cluster scenario
104+
with previous releases (i.e. prior to 8.16), and the request will throw an `IllegalArgumentException`.
105+
- `_rank` has now been removed from the output of the `rrf` retrievers so trying to directly parse the field
106+
will throw an exception
107+
====
108+
109+
[[update_data_stream_lifecycle_telemetry_to_track_global_retention]]
110+
.Update data stream lifecycle telemetry to track global retention
111+
[%collapsible]
112+
====
113+
*Details* +
114+
In this release we introduced global retention settings that fulfil the following criteria:
115+
116+
- a data stream managed by the data stream lifecycle,
117+
- a data stream that is not an internal data stream.
118+
119+
As a result, we defined different types of retention:
120+
121+
- **data retention**: the retention configured on data stream level by the data stream user or owner
122+
- **default global retention:** the retention configured by an admin on a cluster level and applied to any
123+
data stream that doesn't have data retention and fulfils the criteria.
124+
- **max global retention:** the retention configured by an admin to guard against having long retention periods.
125+
Any data stream that fulfills the criteria will adhere to the data retention unless it exceeds the max retention,
126+
in which case the max global retention applies.
127+
- **effective retention:** the retention that applies on the data stream that fulfill the criteria at a given moment
128+
in time. It takes into consideration all the retention above and resolves it to the retention that will take effect.
129+
130+
Considering the above changes, having a field named `retention` in the usage API was confusing. For this reason, we
131+
renamed it to `data_retention` and added telemetry about the other configurations too.
132+
133+
*Impact* +
134+
Users that use the field `data_lifecycle.retention` should use the `data_lifecycle.data_retention`
135+
====
136+
137+
138+
[discrete]
139+
[[deprecated-8.16]]
140+
=== Deprecations
141+
142+
The following functionality has been deprecated in {es} 8.16
143+
and will be removed in a future version.
144+
While this won't have an immediate impact on your applications,
145+
we strongly encourage you to take the described steps to update your code
146+
after upgrading to 8.16.
147+
148+
To find out if you are using any deprecated functionality,
149+
enable <<deprecation-logging, deprecation logging>>.
150+
151+
[discrete]
152+
[[deprecations_816_analysis]]
153+
==== Analysis deprecations
154+
155+
[[deprecate_dutch_kp_lovins_stemmer_as_they_are_removed_in_lucene_10]]
156+
.Deprecate dutch_kp and lovins stemmer as they are removed in Lucene 10
157+
[%collapsible]
158+
====
159+
*Details* +
160+
kp, dutch_kp, dutchKp and lovins stemmers are deprecated and will be removed.
161+
162+
*Impact* +
163+
These stemmers will be removed and will be no longer supported.
164+
====
165+
166+
[[deprecate_edge_ngram_side_parameter]]
167+
.deprecate `edge_ngram` side parameter
168+
[%collapsible]
169+
====
170+
*Details* +
171+
edge_ngram will no longer accept the side parameter.
172+
173+
*Impact* +
174+
Users will need to update any usage of edge_ngram token filter that utilizes `side`. If the `back` value was used, they can achieve the same behavior by using the `reverse` token filter.
175+
====
176+
177+
[discrete]
178+
[[deprecations_816_crud]]
179+
==== CRUD deprecations
180+
181+
[[deprecate_dot_prefixed_indices_composable_template_index_patterns]]
182+
.Deprecate dot-prefixed indices and composable template index patterns
183+
[%collapsible]
184+
====
185+
*Details* +
186+
Indices beginning with a dot '.' are reserved for system and internal indices, and should not be used by and end-user. Additionally, composable index templates that contain patterns for dot-prefixed indices should also be avoided, as these patterns are meant for internal use only. In a future Elasticsearch version, creation of these dot-prefixed indices will no longer be allowed.
187+
188+
*Impact* +
189+
Requests performing an action that would create an index beginning with a dot (indexing a document, manual creation, reindex), or creating an index template with index patterns beginning with a dot, will contain a deprecation header warning about dot-prefixed indices in the response.
190+
====
191+
192+
[discrete]
193+
[[deprecations_816_rest_api]]
194+
==== REST API deprecations
195+
196+
[[adding_deprecation_warnings_for_rrf_using_rank_sub_searches]]
197+
.Adding deprecation warnings for rrf using rank and `sub_searches`
198+
[%collapsible]
199+
====
200+
*Details* +
201+
Search API parameter `sub_searches` will no longer be a supported and will be removed in future releases. Similarly, `rrf` can only be used through the specified `retriever` and no longer though the `rank` parameter
202+
203+
*Impact* +
204+
Requests specifying rrf through `rank` and/or `sub_searches` elements will be disallowed in a future version. Users should instead utilize the new `retriever` parameter.
205+
====
206+
207+
[[deprecate_legacy_params_from_range_query]]
208+
.Deprecate legacy params from range query
209+
[%collapsible]
210+
====
211+
*Details* +
212+
Range query will not longer accept `to`, `from`, `include_lower`, and `include_upper` parameters.
213+
214+
*Impact* +
215+
Instead use `gt`, `gte`, `lt` and `lte` parameters.
216+
====
34217

35-
If you run {es} 8.16 on JDK version 22 or below, it will use the _COMPAT_ locale database
36-
to match the behavior of 8.15. However, please note that starting with {es} 9.0,
37-
{es} will use the _CLDR_ database regardless of JDK version it is run on.

0 commit comments

Comments
 (0)