OpenSearch/docs/reference/release-notes
Martijn van Groningen 6aa9aaa2c6
Add validation for dynamic templates (#52890)
Backport of #51233 to the seven dot x branch.

Tries to load a `Mapper` instance for the mapping snippet of a dynamic template.
This should catch things like using an analyzer that is undefined or mapping attributes that are unused.

This is best effort:
* If `{{name}}` placeholder is used in the mapping snippet then validation is skipped.
* If `match_mapping_type` is not specified then validation is performed for all mapping types.
  If parsing succeeds with a single mapping type then this the dynamic mapping is considered valid.

If is detected that a dynamic template mapping snippet is invalid at mapping update time then the mapping update is failed for indices created on 8.0.0-alpha1 and later. For indices created on prior version a deprecation warning is omitted instead. In 7.x clusters the mapping update will never fail in case of an invalid dynamic template mapping snippet and a deprecation warning will always be omitted.

Closes #17411
Closes #24419

Co-authored-by: Adrien Grand <jpountz@gmail.com>
2020-02-28 10:35:04 +01:00
..
7.0.0-alpha1.asciidoc Generate release notes for 7.0.0-alpha1. (#39899) 2019-03-12 08:10:18 +01:00
7.0.0-alpha2.asciidoc [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00
7.0.0-beta1.asciidoc [DOCS] Adds placeholder for 7.0.0-rc1 release notes 2019-03-22 11:34:50 -07:00
7.0.0-rc1.asciidoc [DOCS] Removes coming tags 2019-05-28 08:58:41 -07:00
7.0.0-rc2.asciidoc release notes for 7.0.0-rc2 (#40796) 2019-04-03 11:48:59 -05:00
7.0.asciidoc 7.1.0 release notes forward port (#42252) 2019-05-20 14:39:17 -04:00
7.1.asciidoc [DOCS] Removes coming tags 2019-05-28 08:58:41 -07:00
7.2.asciidoc [DOCS] Term dict memory usage is a 7.3.0 enhancement, not 7.2.0 (#46662) 2019-09-19 14:15:12 +02:00
7.3.asciidoc [DOCS] Term dict memory usage is a 7.3.0 enhancement, not 7.2.0 (#46662) 2019-09-19 14:15:12 +02:00
7.4.asciidoc [DOCS] Remove coming tag from 7.4.2 RN backport. 2019-10-31 09:43:26 -07:00
7.5.asciidoc Correct release notes for 7.5 (#52660) 2020-02-21 14:59:46 -05:00
7.6.asciidoc [DOCS] Adds ml-cpp PRs to release notes (#52158) 2020-02-10 18:06:01 -08:00
7.7.asciidoc Add validation for dynamic templates (#52890) 2020-02-28 10:35:04 +01:00
highlights-7.0.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.1.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.2.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.3.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.4.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.5.0.asciidoc [7.x][DOCS] Updates ML links (#50387) (#50409) 2019-12-20 10:01:19 -08:00
highlights-7.6.0.asciidoc [DOCS] Adds machine learning highlights (#52334) 2020-02-14 08:51:55 -08:00
highlights-7.7.0.asciidoc [DOCS] Adds release highlight for transforms (#51555) 2020-01-29 08:35:02 -08:00
highlights.asciidoc [DOCS] Adds release highlight for transforms (#51555) 2020-01-29 08:35:02 -08:00