You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Dynamic mapping in component templates do not work when using a path_match array.
The path_match array property is wrongly resolved to a string containing the JSON array when being applied to a new index.
I.e.,
... "path_match": [
"a.*",
"b.*"
], ...
becomes
... "path_match": "[a.*, b.*]", ...
which never matches.
Related component
Other
To Reproduce
Create component template with dynamic mapping using a path_match array
Check the mapping of the newly created index
-> the path_match property is wrongly stored as single string
-> the intended dynamic mapping was not applied to the properties; instead the properties are defined with the default type text (and keyword sub-field).
Describe the bug
Dynamic mapping in component templates do not work when using a
path_match
array.The
path_match
array property is wrongly resolved to a string containing the JSON array when being applied to a new index.I.e.,
becomes
which never matches.
Related component
Other
To Reproduce
path_match
array-> the
path_match
property is wrongly stored as single string-> the intended dynamic mapping was not applied to the properties; instead the properties are defined with the default type
text
(and keyword sub-field).Expected behavior
The JSON array containing separate match patterns should be preserved when applying the template to a new index.
Additional Details
Plugins
none
Screenshots
n/a
Host/Environment (please complete the following information):
Additional context
n/a
The text was updated successfully, but these errors were encountered: