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

[source, python]
----
resp = client.search(
    query={
        "dis_max": {
            "queries": [
                {
                    "match_phrase_prefix": {
                        "subject": "quick brown f"
                    }
                },
                {
                    "match_phrase_prefix": {
                        "message": "quick brown f"
                    }
                }
            ]
        }
    },
)
print(resp)
----
