mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 00:15:47 +00:00
Relates to #22024 On top of documentation, the PR adds deprecation loggers and deals with the resulting warning headers. The yaml test is set exclude versions up to 6.0. This is need to make sure bwc tests pass until this is backported to 5.2.0 . Once that's done, I will change the yaml test version limits
35 lines
944 B
Plaintext
35 lines
944 B
Plaintext
[[breaking_60_indices_changes]]
|
|
=== Templates changes
|
|
|
|
==== `template` is now `index_patterns`
|
|
|
|
Previously templates expressed the indices that they should match using a glob
|
|
style pattern in the `template` field. They should now use the `index_patterns`
|
|
field instead. As the name implies you can define multiple glob style patterns
|
|
in an array but for convenience defining a single pattern as a bare string is
|
|
also supported. So both of these examples are valid:
|
|
|
|
[source,js]
|
|
--------------------------------------------------
|
|
PUT _template/template_1
|
|
{
|
|
"index_patterns": ["te*", "bar*"],
|
|
"settings": {
|
|
"number_of_shards": 1
|
|
}
|
|
}
|
|
PUT _template/template_2
|
|
{
|
|
"index_patterns": "te*",
|
|
"settings": {
|
|
"number_of_shards": 1
|
|
}
|
|
}
|
|
--------------------------------------------------
|
|
// CONSOLE
|
|
|
|
|
|
=== Shadow Replicas are deprecated
|
|
|
|
<<indices-shadow-replicas,Shadow Replicas>> don't see much usage and we are planning to remove them.
|