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 document parsing to properly ignore entire type when disabled #13085

Merged
merged 1 commit into from Aug 25, 2015

Conversation

rjernst
Copy link
Member

@rjernst rjernst commented Aug 24, 2015

Currently when an entire type is disabled, our document parser will end
parsing on the first field of the document. This blows up the recently
added check that parsing did not silently skip any tokens (ie whether
there was garbage leftover).

This change fixes the parser to correctly skip the entire document when
the type is disabled.

closes #13017

…sabled

Currently when an entire type is disabled, our document parser will end
parsing on the first field of the document. This blows up the recently
added check that parsing did not silently skip any tokens (ie whether
there was garbage leftover).

This change fixes the parser to correctly skip the entire document when
the type is disabled.

closes elastic#13017
@rjernst rjernst added :Search/Mapping Index mappings, including merging and defining field types v2.0.0 labels Aug 24, 2015
@jpountz
Copy link
Contributor

jpountz commented Aug 25, 2015

LGTM

rjernst added a commit that referenced this pull request Aug 25, 2015
Fix document parsing to properly ignore entire type when disabled
@rjernst rjernst merged commit d77bcb0 into elastic:master Aug 25, 2015
@rjernst rjernst deleted the fix/13017 branch August 25, 2015 15:58
@tlrx
Copy link
Member

tlrx commented Aug 26, 2015

@rjernst Thanks a lot!

rjernst added a commit that referenced this pull request Aug 30, 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-beta2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using enabled:false on document type throws exception in tests
4 participants