// This file is autogenerated, DO NOT EDIT
// analysis/tokenfilters/keep-words-tokenfilter.asciidoc:26

[source, python]
----
resp = client.indices.analyze(
    tokenizer="whitespace",
    filter=[
        {
            "type": "keep",
            "keep_words": [
                "dog",
                "elephant",
                "fox"
            ]
        }
    ],
    text="the quick fox jumps over the lazy dog",
)
print(resp)
----
