Skip to content
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

Counted keyword synthetic source inherit keep #120426

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

jordan-powers
Copy link
Contributor

@jordan-powers jordan-powers commented Jan 17, 2025

This PR adds a mechanism to track the value of the synthetic_source_keep setting if it is set in the mapping settings, inherited from an object field at a higher level, or specified in the index settings. This value is then used to properly implement synthetic source support in the counted_keyword field type.

This PR also adds tests to MapperTestCase to verify that if synthetic_source_keep is set on an outer object field, or in the index settings, it is respected by mappers.

Follow-up to #120078
Relates to #109796

@jordan-powers jordan-powers added >enhancement auto-backport Automatically create backport pull requests when merged :StorageEngine/Mapping The storage related side of mappings v9.0.0 v8.18.0 labels Jan 17, 2025
@jordan-powers jordan-powers self-assigned this Jan 17, 2025
@elasticsearchmachine elasticsearchmachine added the external-contributor Pull request authored by a developer outside the Elasticsearch team label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Automatically create backport pull requests when merged >enhancement external-contributor Pull request authored by a developer outside the Elasticsearch team :StorageEngine/Mapping The storage related side of mappings v8.18.0 v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants