migrate_8_1.asciidoc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. [[migrating-8.1]]
  2. == Migrating to 8.1
  3. ++++
  4. <titleabbrev>8.1</titleabbrev>
  5. ++++
  6. This section discusses the changes that you need to be aware of when migrating
  7. your application to {es} 8.1.
  8. See also <<release-highlights>> and <<es-release-notes>>.
  9. coming[8.1.0]
  10. [discrete]
  11. [[breaking-changes-8.1]]
  12. === Breaking changes
  13. The following changes in {es} 8.1 might affect your applications
  14. and prevent them from operating normally.
  15. Before upgrading to 8.1, review these changes and take the described steps
  16. to mitigate the impact.
  17. NOTE: Breaking changes introduced in minor versions are
  18. normally limited to security and bug fixes.
  19. Significant changes in behavior are deprecated in a minor release and
  20. the old behavior is supported until the next major release.
  21. To find out if you are using any deprecated functionality,
  22. enable <<deprecation-logging, deprecation logging>>.
  23. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  24. //Installation and Upgrade Guide
  25. //tag::notable-breaking-changes[]
  26. [discrete]
  27. [[breaking_81_rest_api_changes]]
  28. ==== REST API changes
  29. [[fields_api_geoshape_normalize]]
  30. .The search API's `fields` parameter now normalizes geometry objects that cross the international dateline.
  31. [%collapsible]
  32. ====
  33. *Details* +
  34. The search API's `fields` parameter now normalizes `geo_shape` objects that
  35. cross the international dateline (+/-180° longitude). For example, if a polygon
  36. crosses the dateline, the `fields` parameter returns it as two polygons. You can
  37. still retrieve original, unnormalized geometry objects from `_source`.
  38. *Impact* +
  39. If your application requires unnormalized geometry objects, retrieve them from
  40. `_source` rather than using the `fields` parameter.
  41. ====
  42. //end::notable-breaking-changes[]
  43. [discrete]
  44. [[deprecated-8.1]]
  45. === Deprecations
  46. The following functionality has been deprecated in {es} 8.1
  47. and will be removed in a future version.
  48. While this won't have an immediate impact on your applications,
  49. we strongly encourage you take the described steps to update your code
  50. after upgrading to 8.1.
  51. NOTE: Significant changes in behavior are deprecated in a minor release and
  52. the old behavior is supported until the next major release.
  53. To find out if you are using any deprecated functionality,
  54. enable <<deprecation-logging, deprecation logging>>.
  55. //tag::notable-breaking-changes[]
  56. [discrete]
  57. [[breaking_8.1_cluster_node_setting_deprecations]]
  58. ==== Cluster and node setting deprecations
  59. [[deprecate-legacy-discovery-type-setting]]
  60. .Legacy values for the `discovery.type` setting are deprecated.
  61. [%collapsible]
  62. ====
  63. *Details* +
  64. Legacy values for the `discovery.type` setting are deprecated and will be
  65. forbidden in a future version.
  66. *Impact* +
  67. Do not set `discovery.type` to any value except `single-node` or `multi-node`.
  68. All other values are equivalent to the default discovery type which is
  69. `multi-node`. Where possible, omit this setting so that {es} uses the default
  70. discovery type.
  71. ====
  72. [discrete]
  73. [[breaking_8.1_rest_api_deprecations]]
  74. ==== REST API deprecations
  75. [[deprecate-lenient-parsing-of-bulk-actions]]
  76. .Lenient parsing of bulk actions is deprecated.
  77. [%collapsible]
  78. ====
  79. *Details* +
  80. Older versions of {es} parse the action lines of bulk requests very permissively
  81. and would silently ignore invalid or malformed actions. This lenience is
  82. deprecated and a future version will reject bulk requests containing invalid
  83. actions.
  84. *Impact* +
  85. Ensure that bulk actions are well-formed JSON objects containing a single entry
  86. with the correct key.
  87. ====
  88. //end::notable-breaking-changes[]