Skip to content

Avoid copying the field alias lookup structure unnecessarily. #39726

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

Merged
merged 2 commits into from
Mar 12, 2019

Conversation

jtibshirani
Copy link
Contributor

The field alias map is now only copied if a new alias is added, or if an alias
definition has changed. This follows the same behavior as we have for concrete
field mappings and avoids unnecessary object creation.

The field alias map is now only copied if a new alias is added, or if an alias
definition has changed. This follows the same behavior as we have for concrete
field mappings and avoids unnecessary object creation.
@jtibshirani jtibshirani added >bug :Search Foundations/Mapping Index mappings, including merging and defining field types v8.0.0 v7.2.0 labels Mar 5, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@cbuescher cbuescher self-assigned this Mar 6, 2019
Copy link
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

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

LGTM

@jtibshirani
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/bwc

@jtibshirani
Copy link
Contributor Author

Thanks @cbuescher for the review!

@jtibshirani jtibshirani merged commit 8e5ba9a into elastic:master Mar 12, 2019
@jtibshirani jtibshirani deleted the field-alias-lookup branch March 12, 2019 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search Foundations/Mapping Index mappings, including merging and defining field types v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants