migrate_5_0.asciidoc 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. [[breaking-changes-5.0]]
  2. == Breaking changes in 5.0
  3. This section discusses the changes that you need to be aware of when migrating
  4. your application to Elasticsearch 5.0.
  5. [float]
  6. [[migration-plugin]]
  7. === Migration Plugin
  8. The https://github.com/elastic/elasticsearch-migration/blob/2.x/README.asciidoc[`elasticsearch-migration` plugin]
  9. (compatible with Elasticsearch 2.3.0 and above) will help you to find issues
  10. that need to be addressed when upgrading to Elasticsearch 5.0.
  11. [float]
  12. === Indices created before 5.0
  13. Elasticsearch 5.0 can read indices created in version 2.0 or above. An
  14. Elasticsearch 5.0 node will not start in the presence of indices created in a
  15. version of Elasticsearch before 2.0.
  16. [IMPORTANT]
  17. .Reindex indices from Elasticseach 1.x or before
  18. =========================================
  19. Indices created in Elasticsearch 1.x or before will need to be reindexed with
  20. Elasticsearch 2.x in order to be readable by Elasticsearch 5.x. It is not
  21. sufficient to use the <<indices-upgrade,`upgrade`>> API. The easiest
  22. way to reindex old indices is to upgrade to Elasticsearch 2.3 or later and to use the
  23. `reindex` API, or the reindex UI provided by the <<migration-plugin,Migration Plugin>>.
  24. =========================================
  25. The first time Elasticsearch 5.0 starts, it will automatically rename index
  26. folders to use the index UUID instead of the index name. If you are using
  27. <<indices-shadow-replicas,shadow replicas>> with shared data folders, first
  28. start a single node with access to all data folders, and let it rename all
  29. index folders before starting other nodes in the cluster.
  30. [float]
  31. === Also see:
  32. * <<breaking_50_search_changes>>
  33. * <<breaking_50_mapping_changes>>
  34. * <<breaking_50_percolator>>
  35. * <<breaking_50_suggester>>
  36. * <<breaking_50_index_apis>>
  37. * <<breaking_50_document_api_changes>>
  38. * <<breaking_50_settings_changes>>
  39. * <<breaking_50_allocation>>
  40. * <<breaking_50_http_changes>>
  41. * <<breaking_50_rest_api_changes>>
  42. * <<breaking_50_cat_api>>
  43. * <<breaking_50_java_api_changes>>
  44. * <<breaking_50_packaging>>
  45. * <<breaking_50_plugins>>
  46. * <<breaking_50_fs>>
  47. * <<breaking_50_aggregations_changes>>
  48. * <<breaking_50_scripting>>
  49. include::migrate_5_0/search.asciidoc[]
  50. include::migrate_5_0/mapping.asciidoc[]
  51. include::migrate_5_0/percolator.asciidoc[]
  52. include::migrate_5_0/suggest.asciidoc[]
  53. include::migrate_5_0/index-apis.asciidoc[]
  54. include::migrate_5_0/docs.asciidoc[]
  55. include::migrate_5_0/settings.asciidoc[]
  56. include::migrate_5_0/allocation.asciidoc[]
  57. include::migrate_5_0/http.asciidoc[]
  58. include::migrate_5_0/rest.asciidoc[]
  59. include::migrate_5_0/cat.asciidoc[]
  60. include::migrate_5_0/java.asciidoc[]
  61. include::migrate_5_0/packaging.asciidoc[]
  62. include::migrate_5_0/plugins.asciidoc[]
  63. include::migrate_5_0/fs.asciidoc[]
  64. include::migrate_5_0/aggregations.asciidoc[]
  65. include::migrate_5_0/scripting.asciidoc[]