// This file is autogenerated, DO NOT EDIT
// analysis/testing.asciidoc:125

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    settings={
        "analysis": {
            "analyzer": {
                "std_folded": {
                    "type": "custom",
                    "tokenizer": "standard",
                    "filter": [
                        "lowercase",
                        "asciifolding"
                    ]
                }
            }
        }
    },
    mappings={
        "properties": {
            "my_text": {
                "type": "text",
                "analyzer": "std_folded"
            }
        }
    },
)
print(resp)

resp1 = client.indices.analyze(
    index="my-index-000001",
    analyzer="std_folded",
    text="Is this déjà vu?",
)
print(resp1)

resp2 = client.indices.analyze(
    index="my-index-000001",
    field="my_text",
    text="Is this déjà vu?",
)
print(resp2)
----
