Skip to content

[Feature Request] Add an index setting to ignore field mapping for documents with fields beyond the index.mapping.depth.limit #13089

@james-hercock-vgw

Description

@james-hercock-vgw

Is your feature request related to a problem? Please describe

Currently, the index setting "index.mapping.depth.limit" allows us to specify a maximum depth limit for mapping.

However this limit only causes OpenSearch to reject documents beyond the limit, with the error "The depth of the field has exceeded the allowed limit of [X]. This limit can be set by changing the [index.mapping.depth.limit] index level setting."

While helpful at keeping the OpenSearch cluster performance in check, this limit is difficult to work with if there is data beyond the depth limit that needs to be ingested.

Describe the solution you'd like

Add a setting such as "index.mapping.depth.ignore_fields_beyond_limit: boolean" that allows us to ignore fields beyond the depth limit while still ingesting the document into the index.

Related component

Indexing

Describe alternatives you've considered

No response

Additional context

Originally brought up in the forum here

Metadata

Metadata

Assignees

No one assigned

    Labels

    IndexingIndexing, Bulk Indexing and anything related to indexingenhancementEnhancement or improvement to existing feature or requestuntriaged

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions