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.
Better error message for long keys in flattened fields (elastic#80433)
When a keyed ´flattened` field that is composed of both the fields key, a separator and the actual value, exceeds Lucenes term limit, the user currently gets a confusing IAE that among other things only mentions the fields `_keyed` subfield as the source of the offending long term. Since it might be both key and value that might trip this we can check earlier and throw a nices IAE that reports both key and value lengths and the prefix of the offending key. Closes elastic#78248
- Loading branch information
Christoph Büscher
committed
Nov 8, 2021
1 parent
051f972
commit 4dc7d70
Showing
2 changed files
with
79 additions
and
8 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