// This file is autogenerated, DO NOT EDIT
// search/multi-search.asciidoc:16

[source, python]
----
resp = client.msearch(
    index="my-index-000001",
    searches=[
        {},
        {
            "query": {
                "match": {
                    "message": "this is a test"
                }
            }
        },
        {
            "index": "my-index-000002"
        },
        {
            "query": {
                "match_all": {}
            }
        }
    ],
)
print(resp)
----
