elasticsearch/docs/reference/mapping
Martijn van Groningen 31b29875c9
Add validation for dynamic templates (#51233)
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-27 11:52:27 +01:00
..
dynamic Add validation for dynamic templates (#51233) 2020-02-27 11:52:27 +01:00
fields Stop ignoring types warnings in REST tests. (#49333) 2019-11-20 08:23:56 -08:00
params [DOCS] Remove 'analyzed string' references (#51946) 2020-02-14 12:33:21 -05:00
types [DOCS] Document include_in_* nested mapping parms (#52648) 2020-02-25 07:12:34 -05:00
dynamic-mapping.asciidoc [DOCS] Change // CONSOLE comments to [source,console] (#46441) 2019-09-06 10:55:16 -04:00
fields.asciidoc Fix docs of the _ignored meta field. 2018-05-02 11:43:50 +02:00
params.asciidoc Remove docs related to index time boosting (#51704) 2020-01-31 09:01:52 -05:00
removal_of_types.asciidoc Stricter checks of setup and teardown in docs tests (#51430) 2020-01-28 17:53:57 +01:00
types.asciidoc New Histogram field mapper that supports percentiles aggregations. (#48580) 2019-11-28 13:58:20 +01:00