// This file is autogenerated, DO NOT EDIT
// scripting/engine.asciidoc:28

[source, python]
----
resp = client.search(
    query={
        "function_score": {
            "query": {
                "match": {
                    "body": "foo"
                }
            },
            "functions": [
                {
                    "script_score": {
                        "script": {
                            "source": "pure_df",
                            "lang": "expert_scripts",
                            "params": {
                                "field": "body",
                                "term": "foo"
                            }
                        }
                    }
                }
            ]
        }
    },
)
print(resp)
----
