// This file is autogenerated, DO NOT EDIT
// query-dsl/percolate-query.asciidoc:688

[source, python]
----
resp = client.search(
    index="my-index-000001",
    query={
        "bool": {
            "should": [
                {
                    "percolate": {
                        "field": "query",
                        "document": {
                            "message": "bonsai tree"
                        },
                        "name": "query1"
                    }
                },
                {
                    "percolate": {
                        "field": "query",
                        "document": {
                            "message": "tulip flower"
                        },
                        "name": "query2"
                    }
                }
            ]
        }
    },
)
print(resp)
----
