// This file is autogenerated, DO NOT EDIT
// mapping/params/ignore-malformed.asciidoc:16

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "number_one": {
                "type": "integer",
                "ignore_malformed": True
            },
            "number_two": {
                "type": "integer"
            }
        }
    },
)
print(resp)

resp1 = client.index(
    index="my-index-000001",
    id="1",
    document={
        "text": "Some text value",
        "number_one": "foo"
    },
)
print(resp1)

resp2 = client.index(
    index="my-index-000001",
    id="2",
    document={
        "text": "Some text value",
        "number_two": "foo"
    },
)
print(resp2)
----
