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

Fix field type compatiblity check to work when only one previous type exists #12779

Merged
merged 1 commit into from Aug 11, 2015

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Aug 10, 2015

This was a straight up bug found in #12753. If only one type existed,
the compatibility check for a new type was not strict, so changes to
an updateable setting like search_analyzer got through (but only
partially). This change fixes the check and adds tests (which were
previously a TODO).

This also fixes a bug in dynamic field creation which woudln't copy
fielddata settings when duplicating a pre-existing field with the
same name.

closes #12753

…vious type exists.

This was a straight up bug found in elastic#12753. If only one type existed,
the compatibility check for a new type was not strict, so changes to
an updateable setting like search_analyzer got through (but only
partially). This change fixes the check and adds tests (which were
previously a TODO).

This also fixes a bug in dynamic field creation which woudln't copy
fielddata settings when duplicating a pre-existing field with the
same name.

closes elastic#12753
@rjernst rjernst added v2.0.0-beta1 :Search/Mapping Index mappings, including merging and defining field types labels Aug 10, 2015
@dakrone dakrone added the review label Aug 10, 2015
@jpountz
Copy link
Contributor

jpountz commented Aug 11, 2015

LGTM

rjernst added a commit that referenced this pull request Aug 11, 2015
Fix field type compatiblity check to work when only one previous type exists
@rjernst rjernst merged commit 80cca9e into elastic:master Aug 11, 2015
@rjernst rjernst deleted the fix/12753 branch August 11, 2015 17:24
@rjernst rjernst removed the review label Aug 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Search/Mapping Index mappings, including merging and defining field types v2.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

JSON mappings differ from real mappings
4 participants