// This file is autogenerated, DO NOT EDIT
// search/validate.asciidoc:272

[source, python]
----
resp = client.indices.validate_query(
    index="my-index-000001",
    rewrite=True,
    all_shards=True,
    query={
        "match": {
            "user.id": {
                "query": "kimchy",
                "fuzziness": "auto"
            }
        }
    },
)
print(resp)
----
