Skip to content

[BUG] The index setting "ignore_malformed" is not working properly #4002

Closed
@hauck-jvsh

Description

@hauck-jvsh

Describe the bug
The "ignore_malformed" option should allow inconsistent data to be indexed, losing only the malformed fields, but it is ignoring the entire item.

To Reproduce

  1. Create an empty index with the setting "ignore_malformed": "true".
  2. insert the following data {
    "name":"test 1",
    "other_field":"string content"
    }
  3. insert the following data {
    "name":"test 2",
    "other_field":{"comment":"object content","size":2}
    }

Expected behavior
In this situation the second item should be indexed only the field "other_field" should be missed, but the hole item is lost.

Host/Environment (please complete the following information):

  • OS: centos 8
  • Version 2.1

Additional context
I'm using this to index a lot of unstructured data, and sometimes a few fields are invalid, but it shouldn't lose the valid fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions