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

[source, python]
----
resp = client.search(
    query={
        "match_phrase": {
            "message": {
                "query": "this is a test",
                "analyzer": "my_analyzer"
            }
        }
    },
)
print(resp)
----
