// This file is autogenerated, DO NOT EDIT
// indices/update-settings.asciidoc:151

[source, python]
----
resp = client.indices.forcemerge(
    index="my-index-000001",
    max_num_segments="5",
)
print(resp)
----
