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

[source, python]
----
resp = client.indices.create(
    index="my_index",
    mappings={
        "properties": {
            "my_histogram": {
                "type": "histogram"
            },
            "my_text": {
                "type": "keyword"
            }
        }
    },
)
print(resp)
----
