Skip to content

[BUG] invalid dynamic_template (includes auto-generated "type": "object") #1513

Description

@rursprung

see opensearch-project/spring-data-opensearch#437
this seems to come from this client

What is the bug?

using dynamic_template generates a wrong template (it includes "type": "object") which then leads to wrong behaviour when ingesting field names with dots in it.

the problem seems to come from here:

which was previously here (got moved around in a recent re-generation):

How can one reproduce the bug?

see opensearch-project/spring-data-opensearch#437

What is the expected behavior?

the provided example works both with the old and new client. more concretely: opensearch-java mustn't inject "type": "object" into the dynamic_template

What is your host/environment?

n/a

Do you have any screenshots?

n/a

Do you have any additional context?

n/a

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions