-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Feature Request] Add an index setting to ignore field mapping for documents with fields beyond the index.mapping.depth.limit #13089
Comments
As @james-hercock-vgw said, he wants to ignore the fields beyond the depth limit while still ingesting the document into the index, I think the behavior just like set |
@gaobinlong I feel like we've had this discussion going both directions - stricter input validation vs more flexible input validation - I don't know that we've got guidance as a project on what path to talk, could you write up an RFC, or maybe come up with some criteria you have in mind for how we shift in one direction vs another? For example; I think I'd be much more comfortable with relaxing input validation if there was an explicit query parameter |
Sure, I'll write an RFC containing more details about that. |
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
The text was updated successfully, but these errors were encountered: