<commit_before>[[setup-upgrade]]
= Upgrade {es}

[partintro]
--
ifeval::["{release-state}"!="released"]
[[upgrade-pre-release]]
IMPORTANT: This documentation is for a pre-release of {es} {minor-version}. 
Upgrades from pre-release builds are not supported and
could result in errors or data loss. 
If you upgrade from a released version to a pre-release verion for testing, 
discard the contents of the cluster when you are done.
Do not attempt to upgrade to the final release. 
endif::[]

{es} can usually be upgraded using a <<rolling-upgrades,Rolling upgrade>>
process so upgrading does not interrupt service. Rolling upgrades are supported:

* Between minor versions
* From 5.6 to 6.8
* From 6.8 to {prev-major-version}
* From {prev-major-version} to {version}
ifeval::[ "{bare_version}" != "{minor-version}.0" ]
* From any version since {minor-version}.0 to {version}
endif::[]

[TIP]
====
For rolling upgrades between major versions, we recommend
using the {kibana-ref}/upgrade-assistant.html[Kibana Upgrade Assistant].

The upgrade assistant identifies deprecated settings in your cluster and guides
you through the process of resolving issues, including reindexing.

We also recommend checking your <<deprecation-logging,deprecation logs>> for any
other functionality that may have changed.
====

[discrete]
[[upgrade-paths]]
=== Upgrade paths to {version}

[cols="<1,3",options="header",]
|====
|Upgrade from   
|Recommended upgrade path to {version}

ifeval::[ "{bare_version}" != "{minor-version}.0" ]
|A previous {minor-version} version (e.g., {minor-version}.0)
|<<rolling-upgrades,Rolling upgrade>> to {version}
endif::[]

|{prev-major-version}
|<<rolling-upgrades,Rolling upgrade>> to {version}

|7.0–7.15
a|
. https://www.elastic.co/guide/en/elasticsearch/reference/{prev-major-version}/rolling-upgrades.html[Rolling upgrade] to {prev-major-version}
. <<rolling-upgrades,Rolling upgrade>> to {version}

|6.8
a|
. https://www.elastic.co/guide/en/elasticsearch/reference/{prev-major-version}/rolling-upgrades.html[Rolling upgrade] to {prev-major-version}
. <<rolling-upgrades,Rolling upgrade>> to {version}

|6.0–6.7
a|

. https://www.elastic.co/guide/en/elasticsearch/reference/6.8/rolling-upgrades.html[Rolling upgrade] to 6.8
. https://www.elastic.co/guide/en/elasticsearch/reference/{prev-major-version}/rolling-upgrades.html[Rolling upgrade] to {prev-major-version}
. <<rolling-upgrades,Rolling upgrade>> to {version}
|====


[WARNING]
====
The upgrade path from 6.8 to 7.0 is *not* supported (both full cluster restart and rolling upgrade).<commit_msg>[DOCS] Update hardcoded 7.16 docs links (#79592)<commit_after>[[setup-upgrade]]
= Upgrade {es}

[partintro]
--
ifeval::["{release-state}"!="released"]
[[upgrade-pre-release]]
IMPORTANT: This documentation is for a pre-release of {es} {minor-version}. 
Upgrades from pre-release builds are not supported and
could result in errors or data loss. 
If you upgrade from a released version to a pre-release verion for testing, 
discard the contents of the cluster when you are done.
Do not attempt to upgrade to the final release. 
endif::[]

{es} can usually be upgraded using a <<rolling-upgrades,Rolling upgrade>>
process so upgrading does not interrupt service. Rolling upgrades are supported:

* Between minor versions
* From 5.6 to 6.8
* From 6.8 to {prev-major-version}
* From {prev-major-version} to {version}
ifeval::[ "{bare_version}" != "{minor-version}.0" ]
* From any version since {minor-version}.0 to {version}
endif::[]

[TIP]
====
For rolling upgrades between major versions, we recommend
using the {kibana-ref}/upgrade-assistant.html[Kibana Upgrade Assistant].

The upgrade assistant identifies deprecated settings in your cluster and guides
you through the process of resolving issues, including reindexing.

We also recommend checking your <<deprecation-logging,deprecation logs>> for any
other functionality that may have changed.
====

[discrete]
[[upgrade-paths]]
=== Upgrade paths to {version}

[cols="<1,3",options="header",]
|====
|Upgrade from   
|Recommended upgrade path to {version}

ifeval::[ "{bare_version}" != "{minor-version}.0" ]
|A previous {minor-version} version (e.g., {minor-version}.0)
|<<rolling-upgrades,Rolling upgrade>> to {version}
endif::[]

|{prev-major-version}
|<<rolling-upgrades,Rolling upgrade>> to {version}

|7.0–7.15
a|
. {ref-7x}/rolling-upgrades.html[Rolling upgrade] to 7.16
. <<rolling-upgrades,Rolling upgrade>> to {version}

|6.8
a|
. {ref-7x}/rolling-upgrades.html[Rolling upgrade] to 7.16
. <<rolling-upgrades,Rolling upgrade>> to {version}

|6.0–6.7
a|

. https://www.elastic.co/guide/en/elasticsearch/reference/6.8/rolling-upgrades.html[Rolling upgrade] to 6.8
. {ref-7x}/rolling-upgrades.html[Rolling upgrade] to 7.16
. <<rolling-upgrades,Rolling upgrade>> to {version}
|====


[WARNING]
====
The upgrade path from 6.8 to 7.0 is *not* supported (both full cluster restart and rolling upgrade).
{'fraction_non_alphanumeric': 0.14369799066368988, 'fraction_numerical': 0.016642987619240917, 'mean_word_length': 5.091470951792336, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 31, 'https://': 5, 'lorem ipsum': 0, 'www.': 5, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5807942', 'n_tokens_mistral': 1622, 'n_tokens_neox': 1539, 'n_words': 493}