// This file is autogenerated, DO NOT EDIT
// mapping/dynamic/field-mapping.asciidoc:234

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "numeric_detection": True
    },
)
print(resp)

resp1 = client.index(
    index="my-index-000001",
    id="1",
    document={
        "my_float": "1.0",
        "my_integer": "1"
    },
)
print(resp1)
----
