You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I trying to use dynamic_templates to map nested objects in a document as flat_object but receive the following error which has something to do with dotted field names:
{
"error": {
"root_cause": [
{
"type": "class_cast_exception",
"reason": "class_cast_exception: class org.opensearch.index.mapper.FlatObjectFieldMapper cannot be cast to class org.opensearch.index.mapper.ObjectMapper (org.opensearch.index.mapper.FlatObjectFieldMapper and org.opensearch.index.mapper.ObjectMapper are in unnamed module of loader 'app')"
}
],
"type": "mapper_parsing_exception",
"reason": "failed to parse",
"caused_by": {
"type": "class_cast_exception",
"reason": "class_cast_exception: class org.opensearch.index.mapper.FlatObjectFieldMapper cannot be cast to class org.opensearch.index.mapper.ObjectMapper (org.opensearch.index.mapper.FlatObjectFieldMapper and org.opensearch.index.mapper.ObjectMapper are in unnamed module of loader 'app')"
}
},
"status": 400
}
Describe the bug
I trying to use dynamic_templates to map nested objects in a document as
flat_object
but receive the following error which has something to do with dotted field names:Related component
Indexing
To Reproduce
Expected behavior
The dotted field names should be mapped as
text
and nested objects should be mapped asflat_object
when indexed.Additional Details
Plugins
None
Screenshots
If applicable, add screenshots to help explain your problem.
Host/Environment (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: