// This file is autogenerated, DO NOT EDIT
// indices/put-mapping.asciidoc:288

[source, python]
----
resp = client.indices.put_mapping(
    index="my-index-000001",
    properties={
        "user_id": {
            "type": "keyword",
            "ignore_above": 100
        }
    },
)
print(resp)
----
