// This file is autogenerated, DO NOT EDIT
// indices/clone-index.asciidoc:123

[source, python]
----
resp = client.indices.clone(
    index="my_source_index",
    target="my_target_index",
    settings={
        "index.number_of_shards": 5
    },
    aliases={
        "my_search_indices": {}
    },
)
print(resp)
----
