// This file is autogenerated, DO NOT EDIT
// analysis/tokenfilters/porterstem-tokenfilter.asciidoc:97

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    settings={
        "analysis": {
            "analyzer": {
                "my_analyzer": {
                    "tokenizer": "whitespace",
                    "filter": [
                        "lowercase",
                        "porter_stem"
                    ]
                }
            }
        }
    },
)
print(resp)
----
