// This file is autogenerated, DO NOT EDIT
// mapping/types/percolator.asciidoc:668

[source, python]
----
resp = client.search(
    index="my_queries2",
    query={
        "percolate": {
            "field": "query",
            "document": {
                "my_field": "wxyz"
            }
        }
    },
)
print(resp)
----
