Skip to content

Expose the reason why a mapping merge is issued. #16059

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 1 commit into from
Jan 19, 2016

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Jan 18, 2016

This would be useful in order to only perform some validations in the case of
a mapping update and in cases when a mapping is restored eg. after a restart,
such as discussed in #15989.

This replaces the current applyDefault parameter which can be derived from
the mapping merge reason: the default mapping should be applied only in case of
a mapping update, if the mapping does not exist yet and if this is not the
default mapping.

This would be useful in order to only perform some validations in the case of
a mapping update and in cases when a mapping is restored eg. after a restart,
such as discussed in elastic#15989.

This replaces the current `applyDefault` parameter which can be derived from
the mapping merge reason: the default mapping should be applied only in case of
a mapping update, if the mapping does not exist yet and if this is not the
default mapping.
@jpountz jpountz added >enhancement :Search Foundations/Mapping Index mappings, including merging and defining field types v5.0.0-alpha1 v2.3.0 labels Jan 18, 2016
@rjernst
Copy link
Member

rjernst commented Jan 18, 2016

LGTM

1 similar comment
@ywelsch
Copy link
Contributor

ywelsch commented Jan 19, 2016

LGTM

jpountz added a commit that referenced this pull request Jan 19, 2016
Expose the reason why a mapping merge is issued.
@jpountz jpountz merged commit d6cbd6f into elastic:master Jan 19, 2016
@jpountz jpountz deleted the enhancement/mapping_merge_reason branch January 19, 2016 08:27
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 v2.3.0 v5.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants