Add disable_templating index setting/mapping parameter to patterned_text#134466
Add disable_templating index setting/mapping parameter to patterned_text#134466jordan-powers merged 24 commits intoelastic:mainfrom
Conversation
martijnvg
left a comment
There was a problem hiding this comment.
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.
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.
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.
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: |
martijnvg
left a comment
There was a problem hiding this comment.
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.