// This file is autogenerated, DO NOT EDIT
// search/search-your-data/search-template.asciidoc:644

[source, python]
----
resp = client.put_script(
    id="my-search-template",
    script={
        "lang": "mustache",
        "source": {
            "query": {
                "match": {
                    "message": "{{query_string}}"
                }
            },
            "from": "{{from}}",
            "size": "{{size}}"
        }
    },
)
print(resp)
----
