-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Ignore_malformed enabled by default and cannot be disabled on fields of type completion #47166
Comments
Pinging @elastic/es-search |
The change in behaviour is due to a bugfix for #23121 that when into 6.4.0 with #30713. The previous IAE behavior doesn't have anything to do with enabeling or disabling the |
OK, this clarifies the behaviour a bit. We do have some code, mainly test one, that gets all the documents from an index and therefore needed to be updated to understand ones with ignored fields (before it would safely handle the IAE, so resulting malformed documents would never end up in the index). It would be good to update the documentation accordingly as that is what confused us in the first place. We were under impression that by setting the |
That makes sense, I'll mark this as a documentation issue then since I think the genereal behaviour is as intended. |
Pinging @elastic/es-docs (>docs) |
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes elastic#47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
The `ignore_malformed` setting only works on selected mapping types, otherwise we throw an mapper_parsing_exception. We should add a list of all the mapping types that support it, since the number of types not supporting it seems larger. Closes #47166
Any update in documentation? there isn't any description about type of completion in this section: ignore_malformed parameter |
Elasticsearch version (
bin/elasticsearch --version
):6.8.3
Plugins installed: [discovery-ec2, repository-s3]
JVM version (
java -version
):java version "1.8.0_171"
Java(TM) SE Runtime Environment (build 1.8.0_171-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode)
OS version (
uname -a
if on a Unix-like system):Linux es-data-2 4.14.143-91.122.amzn1.x86_64 #1 SMP Wed Sep 11 00:43:34 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Description of the problem including expected versus actual behavior:
We have an index with a field mapping of type 'completion' defined like so:
In ES version 6.3.0 which we ran so far, ingesting a malformed document would fail, as would be expected:
After upgrading ES to 6.8.3, the ingestion of such documents works, with the term field being flagged as
_ignored
:Documentation suggests that this behaviour should only happen when the
ignore_malformed
setting has been set to true on the index or the field itself. However, that setting is not set and we still see the behaviour. In fact, setting theignore_malformed
index level setting to eithertrue
orfalse
on the index seems not to have any impact on the behaviour.Steps to reproduce:
ignore_malformed
explicitly set to false:The text was updated successfully, but these errors were encountered: