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
Operating system version:
Microsoft Windows 10.0.19045
Description of the problem including expected versus actual behavior:
When creating an index template with mappings that contain dynamic templates you will get the following server error:
Type: illegal_argument_exception Reason: "composable template [template_name] template after composition is invalid" CausedBy: "Type: illegal_argument_exception Reason: "invalid composite mappings for [template_name]" CausedBy: "Type: mapper_parsing_exception Reason: "Failed to parse mapping: A dynamic template must be defined with a name" CausedBy: "Type: mapper_parsing_exception Reason: "A dynamic template must be defined with a name""""
I just wanted to add that the issue doesn't occur in version 8.17.4 of the Elasticsearch client, so it appears to be a regression in version 8.18.0.
Do you have an idea of when version 8.19 might be released?
@lucacremonesi The 8.19 release of Elasticsearch (server) will be in the next few months, but I plan to release a -preview version of the 8.19 client as soon as it's ready. Should hopefully not take me much longer than 1-2 weeks.
@flobernd In the meanwhile, can we use the client 8.17.4 with the server 8.18.1? According to the documentation that should be possible but I am wondering if there are any known issues.
@lucacremonesi That should work fine 🙂 The client is forward compatible with all minor versions and even with up to +1 major version (including all minors of the +1 major).
Elastic.Clients.Elasticsearch version:
8.18.0
Elasticsearch version:
8.18.0
.NET runtime version:
.NET Framework 4.8.9310.0
Operating system version:
Microsoft Windows 10.0.19045
Description of the problem including expected versus actual behavior:
When creating an index template with mappings that contain dynamic templates you will get the following server error:
Type: illegal_argument_exception Reason: "composable template [template_name] template after composition is invalid" CausedBy: "Type: illegal_argument_exception Reason: "invalid composite mappings for [template_name]" CausedBy: "Type: mapper_parsing_exception Reason: "Failed to parse mapping: A dynamic template must be defined with a name" CausedBy: "Type: mapper_parsing_exception Reason: "A dynamic template must be defined with a name""""
The client generates the request as follows:
Instead the client should generate the request as follows:
Steps to reproduce:
Dictionary<string, DynamicTemplate> DynamicTemplates;
Expected behavior
The index template should be successfully created with the correct dynamic templates in mappings.
Provide
ConnectionSettings
(if relevant):Provide
DebugInformation
(if relevant):The text was updated successfully, but these errors were encountered: