// This file is autogenerated, DO NOT EDIT
// aggregations.asciidoc:241

[source, python]
----
resp = client.search(
    index="my-index-000001",
    aggs={
        "my-agg-name": {
            "terms": {
                "field": "my-field"
            },
            "meta": {
                "my-metadata-field": "foo"
            }
        }
    },
)
print(resp)
----
