// This file is autogenerated, DO NOT EDIT
// indices/split-index.asciidoc:175

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