// This file is autogenerated, DO NOT EDIT
// query-dsl/match-bool-prefix-query.asciidoc:28

[source, python]
----
resp = client.search(
    query={
        "bool": {
            "should": [
                {
                    "term": {
                        "message": "quick"
                    }
                },
                {
                    "term": {
                        "message": "brown"
                    }
                },
                {
                    "prefix": {
                        "message": "f"
                    }
                }
            ]
        }
    },
)
print(resp)
----
