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

[DOCS] Add docs for moving runtime field definitions to index mapping #71154

Closed
lockewritesdocs opened this issue Mar 31, 2021 · 2 comments · Fixed by #71366
Closed

[DOCS] Add docs for moving runtime field definitions to index mapping #71154

lockewritesdocs opened this issue Mar 31, 2021 · 2 comments · Fixed by #71366
Assignees
Labels
>docs General docs changes >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Docs Meta label for docs team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v7.13.0 v8.0.0-alpha1

Comments

@lockewritesdocs
Copy link
Contributor

#69531 introduced the ability to calculate a value for long and double fields at index time. The script parameter on these fields allows users to take a runtime field definition, remove it from the runtime portion of the mappings, and add it to their index mappings to achieve better performance.

If a user moves their runtime definition to the index mappings, that script becomes immutable. To rectify any issues with the script in the index mappings, users would need to create a runtime field with the same name as the indexed field to override the script in the index mappings.

We need to document how users can move their runtime field definitions (and scripts) to their index mapping, and how to rectify any mistakes after indexing.

@lockewritesdocs lockewritesdocs added >enhancement >docs General docs changes :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.13.0 labels Mar 31, 2021
@lockewritesdocs lockewritesdocs self-assigned this Mar 31, 2021
@elasticmachine elasticmachine added Team:Docs Meta label for docs team Team:Search Meta label for search team labels Mar 31, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (Team:Docs)

@elasticmachine
Copy link
Collaborator

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

@javanna javanna added Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch and removed Team:Search Meta label for search team labels Jul 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types Team:Docs Meta label for docs team Team:Search Foundations Meta label for the Search Foundations team in Elasticsearch v7.13.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants