Optionally ignore field when indexed field name exceeds length limit#136143
Optionally ignore field when indexed field name exceeds length limit#136143jordan-powers merged 15 commits intoelastic:mainfrom
Conversation
|
Hi @jordan-powers, I've created a changelog YAML for you. |
🔍 Preview links for changed docs |
ℹ️ Important: Docs version tagging👋 Thanks for updating the docs! Just a friendly reminder that our docs are now cumulative. This means all 9.x versions are documented on the same page and published off of the main branch, instead of creating separate pages for each minor version. We use applies_to tags to mark version-specific features and changes. Expand for a quick overviewWhen to use applies_to tags:✅ At the page level to indicate which products/deployments the content applies to (mandatory) What NOT to do:��� Don't remove or replace information that applies to an older version 🤔 Need help?
|
|
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
|
|
||
| --- | ||
|
|
||
| "Test field name length limit": |
There was a problem hiding this comment.
Maybe also add a test where the field will not be ignored? Or update these tests to add two fields, one field that would be ignored because field name length is exceeded and one field just under this limit?
| ); | ||
| public static final Setting<Boolean> INDEX_MAPPING_IGNORE_DYNAMIC_BEYOND_FIELD_NAME_LENGTH_SETTING = Setting.boolSetting( | ||
| "index.mapping.field_name_length.ignore_dynamic_beyond_limit", | ||
| false, |
There was a problem hiding this comment.
Maybe in a follow up change we can consider defaulting to true in case of logsdb and tsdb?
…lastic#136143) This PR adds an index setting `index.mapping.field_name_length .ignore_dynamic_beyond_limit`. When this setting is set, fields dynamically added to the mapping that would violate the `index.mapping .field_name_length.limit` are silently ignored instead of causing an exception and preventing indexing of the document.
This PR adds an index setting
index.mapping.field_name_length.ignore_dynamic_beyond_limit. When this setting is set, fields dynamically added to the mapping that would violate theindex.mapping.field_name_length.limitare silently ignored instead of causing an exception and preventing indexing of the document.Fixes #135700