-
Notifications
You must be signed in to change notification settings - Fork 243
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
Cannot parse DynamicTemplate mapping with unknown field #810
Comments
Hello, I think you're using the wrong mapping type here. The documentation shows that |
Hello, thanks for your answer, but I'm unsure this is the case as it worked previously and the indice was created using this same mapping with the old API. Could you please send the source regarding the |
Hello again! I have checked the server code thoroughly, I am now sure that
while this returns
I hope this clear things up! |
Hello , Thanks again for your time ! 🙏 |
Java API client version
7.17.21
Java version
17
Elasticsearch Version
7.16.2
Problem description
When i try to put a mapping to an already created indice with these settings
I use a dynamic_template with an analyzer
which result in a JsonpMappingException for fields "analyzer" and "path_match" in the "mapping" section
Error deserializing co.elastic.clients.elasticsearch._types.mapping.KeywordProperty: Unknown field 'analyzer' (JSON path: dynamic_templates[0].designations.mapping.analyzer)
it is demonstrated in the documentation that it is usable that way. (indices created without any problem with this json with the java-high-level-api)
The way i send the request :
The text was updated successfully, but these errors were encountered: