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

[source, python]
----
resp = client.indices.validate_query(
    index="my-index-000001",
    explain=True,
    query={
        "query_string": {
            "query": "@timestamp:foo",
            "lenient": False
        }
    },
)
print(resp)
----
