// This file is autogenerated, DO NOT EDIT
// analysis/specify-analyzer.asciidoc:158

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "title": {
                "type": "text",
                "analyzer": "whitespace",
                "search_analyzer": "simple"
            }
        }
    },
)
print(resp)
----
