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

[source, python]
----
resp = client.index(
    index="my-index-000001",
    id="3",
    refresh=True,
    document={
        "query": {
            "match": {
                "message": "brown fox"
            }
        }
    },
)
print(resp)
----
