migrate_8_1.asciidoc 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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: The notable-breaking-changes tagged regions are re-used in the
  18. //Installation and Upgrade Guide
  19. //tag::notable-breaking-changes[]
  20. [discrete]
  21. [[breaking_81_rest_api_changes]]
  22. ==== REST API changes
  23. [[fields_api_geoshape_normalize]]
  24. .The search API's `fields` parameter now normalizes geometry objects that cross the international dateline.
  25. [%collapsible]
  26. ====
  27. *Details* +
  28. The search API's `fields` parameter now normalizes `geo_shape` objects that
  29. cross the international dateline (+/-180° longitude). For example, if a polygon
  30. crosses the dateline, the `fields` parameter returns it as two polygons. You can
  31. still retrieve original, unnormalized geometry objects from `_source`.
  32. *Impact* +
  33. If your application requires unnormalized geometry objects, retrieve them from
  34. `_source` rather than using the `fields` parameter.
  35. ====
  36. //end::notable-breaking-changes[]
  37. [discrete]
  38. [[deprecated-8.1]]
  39. === Deprecations
  40. The following functionality has been deprecated in {es} 8.1
  41. and will be removed in a future version.
  42. While this won't have an immediate impact on your applications,
  43. we strongly encourage you take the described steps to update your code
  44. after upgrading to 8.1.
  45. To find out if you are using any deprecated functionality,
  46. enable <<deprecation-logging, deprecation logging>>.
  47. //tag::notable-breaking-changes[]
  48. [discrete]
  49. [[breaking_8.1_cluster_node_setting_deprecations]]
  50. ==== Cluster and node setting deprecations
  51. [[deprecate-legacy-discovery-type-setting]]
  52. .Legacy values for the `discovery.type` setting are deprecated.
  53. [%collapsible]
  54. ====
  55. *Details* +
  56. Legacy values for the `discovery.type` setting are deprecated and will be
  57. forbidden in a future version.
  58. *Impact* +
  59. Do not set `discovery.type` to any value except `single-node` or `multi-node`.
  60. All other values are equivalent to the default discovery type which is
  61. `multi-node`. Where possible, omit this setting so that {es} uses the default
  62. discovery type.
  63. ====
  64. [discrete]
  65. [[breaking_8.1_rest_api_deprecations]]
  66. ==== REST API deprecations
  67. [[deprecate-lenient-parsing-of-bulk-actions]]
  68. .Lenient parsing of bulk actions is deprecated.
  69. [%collapsible]
  70. ====
  71. *Details* +
  72. Older versions of {es} parse the action lines of bulk requests very permissively
  73. and would silently ignore invalid or malformed actions. This lenience is
  74. deprecated and a future version will reject bulk requests containing invalid
  75. actions.
  76. *Impact* +
  77. Ensure that bulk actions are well-formed JSON objects containing a single entry
  78. with the correct key.
  79. ====
  80. //end::notable-breaking-changes[]