// This file is autogenerated, DO NOT EDIT
// docs/reindex.asciidoc:748

[source, python]
----
resp = client.reindex(
    source={
        "index": "my-index-000001",
        "_source": [
            "user.id",
            "_doc"
        ]
    },
    dest={
        "index": "my-new-index-000001"
    },
)
print(resp)
----
