Skip to content

Adding mappings to data streams #129787

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

masseyke
Copy link
Member

@masseyke masseyke commented Jun 20, 2025

This adds a mappings CompressedXContent object to each DataStream. This mappings object is serialized into the cluster state, and exposed via a getMappings(), getEffectiveMappings(), and getEffectiveIndexTemplate() methods . Right now it is not used by anything, but will be in subsequent PRs.
The code in this PR is not behind a feature flag, because there is no way for the code to have any user-facing impact, since there is no way yet to actually set a mapping on a data stream. The next PR will add the transport actions for getting and setting the mapping. The final PR will add the rest actions, API spec, and yaml rest tests. That will be behind a feature flag.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jun 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Data streams Data streams and their lifecycles >non-issue Team:Data Management Meta label for data/management team v8.19.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants