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:
|
op.setTypeProperty("type", Kind.Object.jsonValue()); |
which was previously here (got moved around in a recent re-generation):
|
op.setTypeProperty("type", "object"); |
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
see opensearch-project/spring-data-opensearch#437
this seems to come from this client
What is the bug?
using
dynamic_templategenerates 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:
opensearch-java/java-client/src/generated/java/org/opensearch/client/opensearch/_types/mapping/Property.java
Line 1440 in 61567fa
which was previously here (got moved around in a recent re-generation):
opensearch-java/java-client/src/main/java/org/opensearch/client/opensearch/_types/mapping/Property.java
Line 1494 in 3955240
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-javamustn't inject"type": "object"into thedynamic_templateWhat is your host/environment?
n/a
Do you have any screenshots?
n/a
Do you have any additional context?
n/a