// This file is autogenerated, DO NOT EDIT
// docs/update-by-query.asciidoc:781

[source, python]
----
resp = client.update_by_query(
    index="test",
    refresh=True,
    conflicts="proceed",
)
print(resp)

resp1 = client.search(
    index="test",
    filter_path="hits.total",
    query={
        "match": {
            "flag": "foo"
        }
    },
)
print(resp1)
----
