-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Remove DocumentParserContext#removeLastIgnoredField(...) #132644
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
Remove DocumentParserContext#removeLastIgnoredField(...) #132644
Conversation
This is no longer needed as offsets of leaf array fields are stored in a doc values offset field that is controlled by field mapper.
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
|
Will this create issues with BWC since indices with |
What happens is the with this change indices created before that version will just no longer use this optimization. In that case they will fallback using ignored source even if the array has just one element. I don't think this change will break anything, just disables the optimization for indices created before that version. Just to be sure I will check whether this bwc scenario is tested and if not I will add a test. |
|
Ah, didn't realize this was just an optimization being removed. This makes sense then, thanks! |
This is no longer needed as offsets of leaf array fields are stored in a doc values offset field that is controlled by field mapper.