-
Notifications
You must be signed in to change notification settings - Fork 1.3k
IndexOps.getMapping raises exception if mapping contains "dynamic_templates" #1721
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
Comments
Can you please provide the mapping of the index (result of GET _/index-name/_mappings request to Elasticsearch) and the code with which you retrieve this with Spring Data Elasticsearch and the complete stacktrace? Which version of SpringData Elasticsearch do you use? |
Unfortunately I am working on proprietary software so I cannot provide the exact source/mapping but I have attempted to provide the relevant parts you asked for after applying some anonymization to them. Spring Data ES version: org.springframework.data:spring-data-elasticsearch:jar:4.1.1 Mapping: {
"mapping": {
"dynamic_templates": [
{
"field1_subfield": {
"path_match": "field1.subfield.*",
"mapping": {
"type": "keyword"
}
}
}
],
"properties": {
"field1": {
"properties": {
"subfield": {
"type": "object"
}
}
}
}
}
} Code: @Data
public class ExistsFilter implements Filter {
...
...
...
@Override
public Mono<FilterValue> getFilterValues(Query query, ReactiveElasticsearchOperations operations) {
return operations.indexOps(Entity.class).getMapping()
.map(mapping -> this.createFilterValue(mapping))
}
} Stack Trace
|
Thanks for the information. I could use this to track it down to the fact that the underlying |
Okay, thanks for the update. I will keep an eye out for the next release and update here if the problem is resolved. |
Upon attempting to retrieve the mapping for an index which contains "dyanmic_templates" an exception is throw which appears to be caused by being unable to parse the response properly.
The text was updated successfully, but these errors were encountered: