elasticsearch/docs/reference/mapping/dynamic
Michael Peterson 5169011325
Allow multiple field names/patterns for (path_)(un)match (#66364) (#95558)
* Allow multiple field names/patterns for (path_)(un)match (#66364)

Arrays of patterns are now allowed for dynamic_templates in the match,
unmatch, path_match and path_unmatch fields. DynamicTemplate has been modified to
support List<String> for these fields. The patterns can be either simple wildcards
or regex. As with previous functionality, when match_pattern="regex", simple wildcards
will be flagged with an error, but when match_pattern="simple", using regular expressions
in the match will not throw an error.

One new error pathway was added: if a user specifies a list of non-strings for
one of these pattern fields (e.g., "match": [10, false]) a MapperParserException
will be thrown.

A dynamic_template yamlRestTest was added. This is a BWC change, so the REST test
that uses arrays of patterns is limited to v8.9 and above.

Closes #66364.
2023-04-27 12:58:49 -04:00
..
field-mapping.asciidoc [DOCS] Warn only one date format is added to the field date formats when using dynamic_date_formats (#88915) 2022-08-11 10:43:53 +02:00
templates.asciidoc Allow multiple field names/patterns for (path_)(un)match (#66364) (#95558) 2023-04-27 12:58:49 -04:00