// This file is autogenerated, DO NOT EDIT
// query-dsl/multi-match-query.asciidoc:131

[source, python]
----
resp = client.search(
    query={
        "dis_max": {
            "queries": [
                {
                    "match": {
                        "subject": "brown fox"
                    }
                },
                {
                    "match": {
                        "message": "brown fox"
                    }
                }
            ],
            "tie_breaker": 0.3
        }
    },
)
print(resp)
----
