Skip to content

Add index.mapping.nested_parents.limit and raise nested fields limit to 100#138961

Merged
jimczi merged 7 commits intoelastic:mainfrom
jimczi:nested_parents_limit
Dec 4, 2025
Merged

Add index.mapping.nested_parents.limit and raise nested fields limit to 100#138961
jimczi merged 7 commits intoelastic:mainfrom
jimczi:nested_parents_limit

Conversation

@jimczi
Copy link
Contributor

@jimczi jimczi commented Dec 3, 2025

This change introduces a new index setting, index.mapping.nested_parents.limit, which limits the number of nested fields that act as parents of other nested fields. Each nested parent requires its own parent bitset in memory, so this new limit (defaulting to 50) prevents excessive bitset creation in deeply nested mappings. Additionally, the existing index.mapping.nested_fields.limit is increased from 50 to 100 to better accommodate common use cases while still protecting against overly complex mappings.

…to 100

This change introduces a new index setting, index.mapping.nested_parents.limit, which limits the number of nested fields that act as parents of other nested fields. Each nested parent requires its own parent bitset in memory, so this new limit (defaulting to 50) prevents excessive bitset creation in deeply nested mappings.
Additionally, the existing index.mapping.nested_fields.limit is increased from 50 to 100 to better accommodate common use cases while still protecting against overly complex mappings.
@jimczi jimczi added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types labels Dec 3, 2025
@jimczi jimczi requested a review from a team as a code owner December 3, 2025 09:27
@jimczi jimczi added the v9.3.0 label Dec 3, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch label Dec 3, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search-foundations (Team:Search Foundations)

@elasticsearchmachine
Copy link
Collaborator

Hi @jimczi, I've created a changelog YAML for you.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

ℹ️ 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 overview

When to use applies_to tags:

✅ At the page level to indicate which products/deployments the content applies to (mandatory)
✅ When features change state (e.g. preview, ga) in a specific version
✅ When availability differs across deployments and environments

What NOT to do:

❌ Don't remove or replace information that applies to an older version
❌ Don't add new information that applies to a specific version without an applies_to tag
❌ Don't forget that applies_to tags can be used at the page, section, and inline level

🤔 Need help?

Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Jim, LGTM

@jimczi jimczi merged commit b344a15 into elastic:main Dec 4, 2025
34 checks passed
@jimczi jimczi deleted the nested_parents_limit branch December 4, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v9.3.0

3 participants