indices.asciidoc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. [discrete]
  2. [[breaking_80_indices_changes]]
  3. ==== Indices changes
  4. //NOTE: The notable-breaking-changes tagged regions are re-used in the
  5. //Installation and Upgrade Guide
  6. //tag::notable-breaking-changes[]
  7. //end::notable-breaking-changes[]
  8. .The deprecated `_upgrade` API has been removed.
  9. [%collapsible]
  10. ====
  11. *Details* +
  12. Previously, the `_upgrade` API upgraded indices from the previous major
  13. version to the current version. The `_reindex` API should be used
  14. instead for that purpose.
  15. *Impact* +
  16. Requests made to the old `_upgrade` API will return an error.
  17. ====
  18. .The force merge API's `max_num_segments` and `only_expunge_deletes` parameters cannot both be specified in the same request.
  19. [%collapsible]
  20. ====
  21. *Details* +
  22. Previously, the force merge API allowed the parameters `only_expunge_deletes`
  23. and `max_num_segments` to be set to a non default value at the same time. But
  24. the `max_num_segments` was silently ignored when `only_expunge_deletes` is set
  25. to `true`, leaving the false impression that it has been applied.
  26. *Impact* +
  27. When using the {ref}/indices-forcemerge.html[force merge API], do not specify
  28. values for both the `max_num_segments` and `only_expunge_deletes` parameters.
  29. Requests that include values for both parameters will return an error.
  30. ====
  31. .The `index.force_memory_term_dictionary` setting has been removed.
  32. [%collapsible]
  33. ====
  34. *Details* +
  35. The `index.force_memory_term_dictionary` setting was introduced in 7.0 as a
  36. temporary measure to allow users to opt-out of the optimization that leaves the
  37. term dictionary on disk when appropriate. This optimization is now mandatory
  38. and the setting is removed.
  39. *Impact* +
  40. Discontinue use of the `index.force_memory_term_dictionary` index setting.
  41. Requests that include this setting will return an error.
  42. ====
  43. .The create or update index template API's `template` parameter has been removed.
  44. [%collapsible]
  45. ====
  46. *Details* +
  47. In 6.0, we deprecated the `template` parameter in create or update index
  48. template requests in favor of using `index_patterns`. Support for the `template`
  49. parameter is now removed in 8.0.
  50. *Impact* +
  51. Use the {ref}/indices-templates-v1.html[create or update index template API]'s
  52. `index_patterns` parameter. Requests that include the `template` parameter will
  53. return an error.
  54. ====
  55. .Synced flush has been removed.
  56. [%collapsible]
  57. ====
  58. *Details* +
  59. Synced flush was deprecated in 7.6 and is removed in 8.0. Use a regular flush
  60. instead as it has the same effect as a synced flush in 7.6 and later.
  61. *Impact* +
  62. Use the {ref}/indices-flush.html[flush API]. Requests to the
  63. `/<index>/flush/synced` or `/flush/synced` endpoints will return an error.
  64. ====
  65. .The `index.soft_deletes.enabled` setting has been removed.
  66. [%collapsible]
  67. ====
  68. *Details* +
  69. Creating indices with soft deletes disabled was deprecated in 7.6 and
  70. is no longer supported in 8.0. The `index.soft_deletes.enabled` setting
  71. can no longer be set to `false`.
  72. *Impact* +
  73. Discontinue use of the `index.soft_deletes.enabled` index setting. Requests that
  74. set `index.soft_deletes.enabled` to `false` will return an error.
  75. ====
  76. .The `index.translog.retention.age` and `index.translog.retention.size` settings have been removed.
  77. [%collapsible]
  78. ====
  79. *Details* +
  80. Translog retention settings `index.translog.retention.age` and
  81. `index.translog.retention.size` were effectively ignored in 7.4, deprecated in
  82. 7.7, and removed in 8.0 in favor of
  83. {ref}/index-modules-history-retention.html[soft deletes].
  84. *Impact* +
  85. Discontinue use of the `index.translog.retention.age` and
  86. `index.translog.retention.size` index settings. Requests that
  87. include these settings will return an error.
  88. ====
  89. .The default for the `?wait_for_active_shards` parameter on the close index API has changed.
  90. [%collapsible]
  91. ====
  92. *Details* +
  93. When closing an index in earlier versions, by default {es} would not wait for
  94. the shards of the closed index to be properly assigned before returning. From
  95. version 8.0 onwards the default behaviour is to wait for shards to be assigned
  96. according to the <<index-wait-for-active-shards,index setting
  97. `index.write.wait_for_active_shards`>>.
  98. *Impact* +
  99. Accept the new behaviour, or specify `?wait_for_active_shards=0` to preserve
  100. the old behaviour if needed.
  101. ====