Skip to content

Missing support for {dynamic_type} property mapping #1558

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
swallez opened this issue Mar 22, 2022 · 2 comments · Fixed by #1723
Open

Missing support for {dynamic_type} property mapping #1558

swallez opened this issue Mar 22, 2022 · 2 comments · Fixed by #1723

Comments

@swallez
Copy link
Member

swallez commented Mar 22, 2022

Found in elastic/elasticsearch-java#142

Index mapping dynamic templates provide more control on dynamic field mappings. Using them allows using the {dynamic_type} property type that is missing in the API spec.

This requires a new DynamicTypeProperty class with a type: '{dynamic_type}' variant tag.

Dynamic properties can be of type object, string, long, double, boolean, date and binary (see ES code). So DynamicTypeProperty must aggregate the properties of all these types.

@nickyhuyskens
Copy link

hello @swallez
I see this ticket has been closed so I assume this should be fixed? Though I can't find DynamicType in the java api version 7.17.7 or 8.5.2.
Any idea what I'm doing wrong?
Kind regards
Nicky

@swallez
Copy link
Member Author

swallez commented Jan 24, 2023

Reopening. In PR #1723 we erroneously tagged DynamicProperty using {dynamic_property} instead of {dynamic_type}.

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

Successfully merging a pull request may close this issue.

2 participants