// This file is autogenerated, DO NOT EDIT
// mapping/fields/doc-count-field.asciidoc:80

[source, python]
----
resp = client.search(
    aggs={
        "histogram_titles": {
            "terms": {
                "field": "my_text"
            }
        }
    },
)
print(resp)
----
