migrate_8_16.asciidoc 8.8 KB

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