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

[source, python]
----
resp = client.search(
    index="my-index-000001",
    query={
        "percolate": {
            "field": "query",
            "index": "my-index-000001",
            "id": "2",
            "version": 1
        }
    },
)
print(resp)
----
