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

[source, python]
----
resp = client.search(
    index="my-index-000001",
    query={
        "percolate": {
            "field": "query",
            "document": {
                "message": "The quick brown fox jumps over the lazy dog"
            }
        }
    },
    highlight={
        "fields": {
            "message": {}
        }
    },
)
print(resp)
----
