migrate_8_16.asciidoc 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. [[migrating-8.16]]
  2. == Migrating to 8.16
  3. ++++
  4. <titleabbrev>8.16</titleabbrev>
  5. ++++
  6. This section discusses the changes that you need to be aware of when migrating
  7. your application to {es} 8.16.
  8. See also <<release-highlights>> and <<es-release-notes>>.
  9. coming::[8.16.0]
  10. [discrete]
  11. [[breaking-changes-8.16]]
  12. === Breaking changes
  13. The following changes in {es} 8.16 might affect your applications
  14. and prevent them from operating normally.
  15. Before upgrading to 8.16, review these changes and take the described steps
  16. to mitigate the impact.
  17. [discrete]
  18. [[breaking_816_analysis_changes]]
  19. ==== Analysis changes
  20. [[set_lenient_to_true_by_default_when_using_updateable_synonyms]]
  21. .Set lenient to true by default when using updateable synonyms
  22. [%collapsible]
  23. ====
  24. *Details* +
  25. When a `synonym` or `synonym_graph` token filter is configured with `updateable: true`, the default `lenient`
  26. value will now be `true`.
  27. *Impact* +
  28. `synonym` or `synonym_graph` token filters configured with `updateable: true` will ignore invalid synonyms by
  29. default. This prevents shard initialization errors on invalid synonyms.
  30. ====
  31. [discrete]
  32. [[breaking_816_mapping_changes]]
  33. ==== Mapping changes
  34. [[jdk_locale_database_change]]
  35. .JDK locale database change
  36. [%collapsible]
  37. ====
  38. *Details* +
  39. {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.
  40. 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.
  41. *Impact* +
  42. 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.
  43. 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.
  44. 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].
  45. ====
  46. [discrete]
  47. [[breaking_816_es_ql_changes]]
  48. ==== ES|QL changes
  49. [[esql_entirely_remove_meta_functions]]
  50. .ESQL: Entirely remove META FUNCTIONS
  51. [%collapsible]
  52. ====
  53. *Details* +
  54. Removes an undocumented syntax from ESQL: META FUNCTION. This was never
  55. reliable or really useful. Consult the documentation instead.
  56. *Impact* +
  57. Removes an undocumented syntax from ESQL: META FUNCTION
  58. ====
  59. [discrete]
  60. [[breaking_816_rest_api_changes]]
  61. ==== REST API changes
  62. [[reworking_rrf_retriever_to_be_evaluated_during_rewrite_phase]]
  63. .Reworking RRF retriever to be evaluated during rewrite phase
  64. [%collapsible]
  65. ====
  66. *Details* +
  67. In this release (8.16), we have introduced major changes to the retrievers framework
  68. and how they can be evaluated, focusing mainly on compound retrievers
  69. like `rrf` and `text_similarity_reranker`, which allowed us to support full
  70. composability (i.e. any retriever can be nested under any compound retriever),
  71. as well as supporting additional search features like collapsing, explaining,
  72. aggregations, and highlighting.
  73. To ensure consistency, and given that this rework is not available until 8.16,
  74. `rrf` and `text_similarity_reranker` retriever queries would now
  75. throw an exception in a mixed cluster scenario, where there are nodes
  76. both in current or later (i.e. >= 8.16) and previous ( <= 8.15) versions.
  77. As part of the rework, we have also removed the `_rank` property from
  78. the responses of an `rrf` retriever.
  79. *Impact* +
  80. - Users will not be able to use the `rrf` and `text_similarity_reranker` retrievers in a mixed cluster scenario
  81. with previous releases (i.e. prior to 8.16), and the request will throw an `IllegalArgumentException`.
  82. - `_rank` has now been removed from the output of the `rrf` retrievers so trying to directly parse the field
  83. will throw an exception
  84. ====
  85. [[update_data_stream_lifecycle_telemetry_to_track_global_retention]]
  86. .Update data stream lifecycle telemetry to track global retention
  87. [%collapsible]
  88. ====
  89. *Details* +
  90. In this release we introduced global retention settings that fulfil the following criteria:
  91. - a data stream managed by the data stream lifecycle,
  92. - a data stream that is not an internal data stream.
  93. As a result, we defined different types of retention:
  94. - **data retention**: the retention configured on data stream level by the data stream user or owner
  95. - **default global retention:** the retention configured by an admin on a cluster level and applied to any
  96. data stream that doesn't have data retention and fulfils the criteria.
  97. - **max global retention:** the retention configured by an admin to guard against having long retention periods.
  98. Any data stream that fulfills the criteria will adhere to the data retention unless it exceeds the max retention,
  99. in which case the max global retention applies.
  100. - **effective retention:** the retention that applies on the data stream that fulfill the criteria at a given moment
  101. in time. It takes into consideration all the retention above and resolves it to the retention that will take effect.
  102. Considering the above changes, having a field named `retention` in the usage API was confusing. For this reason, we
  103. renamed it to `data_retention` and added telemetry about the other configurations too.
  104. *Impact* +
  105. Users that use the field `data_lifecycle.retention` should use the `data_lifecycle.data_retention`
  106. ====
  107. [discrete]
  108. [[deprecated-8.16]]
  109. === Deprecations
  110. The following functionality has been deprecated in {es} 8.16
  111. and will be removed in a future version.
  112. While this won't have an immediate impact on your applications,
  113. we strongly encourage you to take the described steps to update your code
  114. after upgrading to 8.16.
  115. To find out if you are using any deprecated functionality,
  116. enable <<deprecation-logging, deprecation logging>>.
  117. [discrete]
  118. [[deprecations_816_analysis]]
  119. ==== Analysis deprecations
  120. [[deprecate_dutch_kp_lovins_stemmer_as_they_are_removed_in_lucene_10]]
  121. .Deprecate dutch_kp and lovins stemmer as they are removed in Lucene 10
  122. [%collapsible]
  123. ====
  124. *Details* +
  125. kp, dutch_kp, dutchKp and lovins stemmers are deprecated and will be removed.
  126. *Impact* +
  127. These stemmers will be removed and will be no longer supported.
  128. ====
  129. [[deprecate_edge_ngram_side_parameter]]
  130. .deprecate `edge_ngram` side parameter
  131. [%collapsible]
  132. ====
  133. *Details* +
  134. edge_ngram will no longer accept the side parameter.
  135. *Impact* +
  136. 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.
  137. ====
  138. [discrete]
  139. [[deprecations_816_crud]]
  140. ==== CRUD deprecations
  141. [[deprecate_dot_prefixed_indices_composable_template_index_patterns]]
  142. .Deprecate dot-prefixed indices and composable template index patterns
  143. [%collapsible]
  144. ====
  145. *Details* +
  146. 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.
  147. *Impact* +
  148. 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.
  149. ====
  150. [discrete]
  151. [[deprecations_816_rest_api]]
  152. ==== REST API deprecations
  153. [[adding_deprecation_warnings_for_rrf_using_rank_sub_searches]]
  154. .Adding deprecation warnings for rrf using rank and `sub_searches`
  155. [%collapsible]
  156. ====
  157. *Details* +
  158. 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
  159. *Impact* +
  160. 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.
  161. ====
  162. [[deprecate_legacy_params_from_range_query]]
  163. .Deprecate legacy params from range query
  164. [%collapsible]
  165. ====
  166. *Details* +
  167. Range query will not longer accept `to`, `from`, `include_lower`, and `include_upper` parameters.
  168. *Impact* +
  169. Instead use `gt`, `gte`, `lt` and `lte` parameters.
  170. ====