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

[source, python]
----
resp = client.search(
    query={
        "bool": {
            "should": [
                {
                    "match": {
                        "name.first": {
                            "query": "shay",
                            "_name": "first"
                        }
                    }
                },
                {
                    "match": {
                        "name.last": {
                            "query": "banon",
                            "_name": "last"
                        }
                    }
                }
            ],
            "filter": {
                "terms": {
                    "name.last": [
                        "banon",
                        "kimchy"
                    ],
                    "_name": "test"
                }
            }
        }
    },
)
print(resp)
----
