-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add disable_templating index setting/mapping parameter to patterned_text #134466
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
Add disable_templating index setting/mapping parameter to patterned_text #134466
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks in the right direction. I left a few comments.
...gin/logsdb/src/main/java/org/elasticsearch/xpack/logsdb/LogsdbIndexModeSettingsProvider.java
Show resolved
Hide resolved
| "index.mapping.patterned_text_disable_enterprise", | ||
| false, | ||
| Setting.Property.IndexScope, | ||
| Setting.Property.InternalIndex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be PrivateIndex? I think right now this isn't possible ,however #133789 just got merged, that should allow this.
| * no valid enterprise license. | ||
| */ | ||
| public static final Setting<Boolean> PATTERNED_TEXT_BASIC_SETTING = Setting.boolSetting( | ||
| "index.mapping.patterned_text_disable_enterprise", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe rename this to index.mapping.patterned_text.disable_templating? So this looks less license oriented and more of a flag to disable a functionality.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I wasn't happy with that name, I just couldn't think of anything better at the moment. patterned_text.disable_templating sounds good to me
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
|
Failing release tests are known issues being addressed in other PRs: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @jordan-powers!
|
The only failing test is an unrelated known issue (#134640), so I'll merge anyway. |
…ext (elastic#134466) This patch is the first step to gate the storage savings of the patterned_text field mapper behind an enterprise license. A new index setting ``index.mapping.patterned_text.disable_templating` is set on index creation if the current license does not support the patterned text enterprise-level storage savings. This index setting is then used to set the parameter disable_templating on the patterned text mapper.
Follow-up to #134466 to actually check the disable_templating parameter in the patterned_text mapper. When the parameter is set, values will be stored as-is in a stored field.
…ext (elastic#134466) This patch is the first step to gate the storage savings of the patterned_text field mapper behind an enterprise license. A new index setting ``index.mapping.patterned_text.disable_templating` is set on index creation if the current license does not support the patterned text enterprise-level storage savings. This index setting is then used to set the parameter disable_templating on the patterned text mapper.
Follow-up to elastic#134466 to actually check the disable_templating parameter in the patterned_text mapper. When the parameter is set, values will be stored as-is in a stored field.
This PR is the first step to gate the storage savings of the patterned_text field mapper behind an enterprise license.
A new index setting
index.mapping.patterned_text.disable_templatingis set on index creation if the current license does not support the patterned text enterprise-level storage savings.This index setting is then used to set the parameter
disable_templatingon the patterned text mapper.