// This file is autogenerated, DO NOT EDIT
// rollup/apis/rollup-search.asciidoc:178

[source, python]
----
resp = client.rollup.rollup_search(
    index="sensor_rollup",
    size=0,
    aggregations={
        "avg_temperature": {
            "avg": {
                "field": "temperature"
            }
        }
    },
)
print(resp)
----
