// This file is autogenerated, DO NOT EDIT
// query-dsl/script-query.asciidoc:156

[source, python]
----
resp = client.search(
    query={
        "bool": {
            "filter": {
                "script": {
                    "script": {
                        "source": "doc['num1'].value > params.param1",
                        "lang": "painless",
                        "params": {
                            "param1": 5
                        }
                    }
                }
            }
        }
    },
)
print(resp)
----
