Dynamic Template Variables not supported in OpenSearch Java client

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
OpenSearch Version: 2.5.0
OpenSearch Java Version: 2.4.0

Describe the issue:
I am trying to create a dynamic template for a new index, and would like to use {dynamic_type} template variable in the following template like so:

   "mappings": {
      "dynamic_templates": [
            "strict_mappings": {
               "mapping": {
                  "type": "{dynamic_type}",

But, it looks like that the Property class does not support adding a template variable. I would like this strict mapping for all the fields in an index. Is there any workaround for this or when will this be supported? Thank you!

Hi @chintan_patel , could you please open a feature request to opensearch-java [1]?
Thank you.

[1] GitHub - opensearch-project/opensearch-java: Java Client for OpenSearch

Created new feature request here: [FEATURE] Support for Dynamic Template Variables · Issue #585 · opensearch-project/opensearch-java · GitHub

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.