// This file is autogenerated, DO NOT EDIT
// mapping/types/search-as-you-type.asciidoc:18

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "my_field": {
                "type": "search_as_you_type"
            }
        }
    },
)
print(resp)
----
