-
Notifications
You must be signed in to change notification settings - Fork 25k
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
[Bug] 'ignore_malformed' applied to a malformed (boolean) numeric field does not work #11498
Comments
This will not only fail with booleans, but with other non-numeric values as well, e.g.
Ignoring malformed values depends on the code throwing an This touches the same area of code as #11513. Happy to take a stab if you all agree. |
Closing in favour of #11513 |
I changed AbstactXContentParser.java to address this issue. I will do a pull request with the updated code |
Related to #12366 |
cc @elastic/es-search-aggs |
The `ignore_malformed` option currently works on numeric fields only when the bad value isn't a string value but not if it is a boolean. In this case we get a parsing error from the xContent parser which we need to catch in addition to the field mapper. Closes elastic#11498
The `ignore_malformed` option currently works on numeric fields only when the bad value isn't a string value but not if it is a boolean. In this case we get a parsing error from the xContent parser which we need to catch in addition to the field mapper. Closes #11498
The `ignore_malformed` option currently works on numeric fields only when the bad value isn't a string value but not if it is a boolean. In this case we get a parsing error from the xContent parser which we need to catch in addition to the field mapper. Closes #11498
The `ignore_malformed` option currently works on numeric fields only when the bad value isn't a string value but not if it is a boolean. In this case we get a parsing error from the xContent parser which we need to catch in addition to the field mapper. Closes #11498
The `ignore_malformed` option currently works on numeric fields only when the bad value isn't a string value but not if it is a boolean. In this case we get a parsing error from the xContent parser which we need to catch in addition to the field mapper. Closes elastic#11498
When I try to index a doc with a boolean field that's mapped as numeric, even with ìgnored_malformed
set to
true`, an exception is raised.Repro steps:
Create a new index:
which yields
{ "acknowledged" : true }
Create a mapping for a type in that index, with one integer field that has
ignore_malformed
set to true and coerce set totrue
which yields
{ "acknowledged" : true }
Index one document with a field whose value is false
which yields an exception:
According to
ignored_malformed: true
, even if false is not an integer, the doc should get indexed anyway.The text was updated successfully, but these errors were encountered: