Skip to content

Restrict default field name length #58952

@henningandersen

Description

@henningandersen

The default field name length limit is unbounded. This imposes a risk to cluster health in that if a client generates wildly long field names, the resulting mapping can become large, causing cluster wide issues.

We propose to lower the default limit of field names to 10K characters. This should be done in both 8.0 and 7.x, with an opt out option.

This should only apply to field mappings created after an upgrade to a version with the new default limit.

Related to #40309

Metadata

Metadata

Assignees

No one assigned

    Labels

    :Search Foundations/MappingIndex mappings, including merging and defining field types>enhancementTeam:Search FoundationsMeta label for the Search Foundations team in Elasticsearchpriority:highA label for assessing bug priority to be used by ES engineers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions