Don't normalize fields of type text when the index mode is LogsDB or TSDB#131317
Merged
Kubik42 merged 13 commits intoelastic:mainfrom Aug 21, 2025
Merged
Don't normalize fields of type text when the index mode is LogsDB or TSDB#131317Kubik42 merged 13 commits intoelastic:mainfrom
Kubik42 merged 13 commits intoelastic:mainfrom
Conversation
…TSDB. In the context of logsdb and tsdb, not many fields are configured to be of type text, and given the trade offs that logsdb and tsdb provide that is geared towards storage reduction, it makes sense not to store a normalized version of text fields. Closes elastic#129183
Collaborator
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
Collaborator
|
Hi @Kubik42, I've created a changelog YAML for you. Note that since this PR is labelled |
Collaborator
|
Hi @Kubik42, I've updated the changelog YAML for you. Note that since this PR is labelled |
Collaborator
|
Hi @Kubik42, I've updated the changelog YAML for you. Note that since this PR is labelled |
martijnvg
approved these changes
Jul 29, 2025
Member
martijnvg
left a comment
There was a problem hiding this comment.
Left minor nits, otherwise LGTM pending breaking change discussion.
…apper.java Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com>
Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com>
Co-authored-by: Martijn van Groningen <martijn.v.groningen@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changes the default behavior for norms on
textfields in logsdb and tsdb indices. Prior to this change, norms were enabled by default, with the option to disable them via manual configurations. After this change, norms will be disabled by default. Note, because we don't support enabling norms from a disabled state (code), unless manually enabled from the get-go, users will not be able to enable norms ontextfields in logsdb and tsdb indices.In the context of logsdb and tsdb, not many fields are configured to be of type
text, and given the trade offs that logsdb and tsdb provide that is geared towards storage reduction, it makes sense not to store a normalized version oftextfields.Closes #129183
During benchmarking, there was a minor improvement in disk usage:
More benchmarks and details available here.
With this change, we're also replacing the existing
TextParms.normswithParameter.normsParamto be more in line with the existing functions in that class. This change is covered by the existing tests.