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

[source, python]
----
resp = client.search(
    index="my-index-000001",
    query={
        "percolate": {
            "field": "query",
            "documents": [
                {
                    "message": "Japanse art"
                },
                {
                    "message": "Holand culture"
                },
                {
                    "message": "Japanese art and Holand culture"
                },
                {
                    "message": "no-match"
                }
            ]
        }
    },
)
print(resp)
----
