// This file is autogenerated, DO NOT EDIT
// query-dsl/function-score-query.asciidoc:380

[source, python]
----
resp = client.search(
    query={
        "function_score": {
            "gauss": {
                "@timestamp": {
                    "origin": "2013-09-17",
                    "scale": "10d",
                    "offset": "5d",
                    "decay": 0.5
                }
            }
        }
    },
)
print(resp)
----
