// This file is autogenerated, DO NOT EDIT
// aggregations/metrics/top-metrics-aggregation.asciidoc:272

[source, python]
----
resp = client.indices.put_settings(
    index="test",
    settings={
        "top_metrics_max_size": 100
    },
)
print(resp)
----
