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

[source, python]
----
resp = client.indices.create(
    index="trim_example",
    settings={
        "analysis": {
            "analyzer": {
                "keyword_trim": {
                    "tokenizer": "keyword",
                    "filter": [
                        "trim"
                    ]
                }
            }
        }
    },
)
print(resp)
----
