forked from elastic/elasticsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[7.x][ML] Exclude nested fields in data frame analytics (elastic#71400)…
… (elastic#71415) Previously, the destination index was sorted which meant it could not have `nested` fields. Since this has changed, `nested` fields may be present. These were handled incorrectly as the _explain API would report that they can be included in the analysis while that is not the case. This commit fixes this issue by detecting `nested` fields and children of those `nested` fields and excluding them from the analysis. A `nested` field may contain multiple inner fields. To avoid the noise in the API response, we collapse them into a single entry with the path to the top level nested field. Backport of elastic#71400
- Loading branch information
1 parent
754cda8
commit 955bd8d
Showing
3 changed files
with
164 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.