// This file is autogenerated, DO NOT EDIT
// search/search-template-api.asciidoc:43

[source, python]
----
resp = client.search_template(
    index="my-index",
    id="my-search-template",
    params={
        "query_string": "hello world",
        "from": 0,
        "size": 10
    },
)
print(resp)
----
