-
Notifications
You must be signed in to change notification settings - Fork 25.1k
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
Support object auto-flattening in the presence of nested and configured objects #108826
Comments
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Pinging @elastic/es-search (Team:Search) |
We need to explore the idea of determining the default value to use for
|
Pinging @elastic/es-search-foundations (Team:Search Foundations) |
subobjects: false
and nested
sub-object field type
We followed a different approach, introducing a new mode |
@kkrik-es What's the current status of this? It seems like the original PR got reverted due to performance issues and now there is a new PR implementing this which hasn't been merged yet, is that right? |
Addressing this is not trivial, so further effort will have to be prioritized. |
Description
In LogsDB it's desirable to avoid mapping errors through object auto-flattening, similar to
subobjects: false
, as described in #106812.However, if sub-objects are disabled by setting
subobjects: false
it means it is not possible to correctly handled a sub-object field of typenested
. This issue arises also becauseNestedObjectMapper
extendsObjectMapper
. More so, objects with params likeenabled: false
are not allowed in the mapping.A use case where the parent is an object and one or more of its sub-objects are a
nested
field is quite common also considering that:subobjects: true
has always been the default value for fields of typeobject
.nested
field as a sub-object field is typically used to model a one-to-many relationship between the parent field and the sub-object (imagine an exception as the parent object and the stack trace log lines as the sub-object, or an alert firing and the list of rules as sub-obejcts).The text was updated successfully, but these errors were encountered: