// This file is autogenerated, DO NOT EDIT
// aggregations/bucket/nested-aggregation.asciidoc:13

[source, python]
----
resp = client.indices.create(
    index="products",
    mappings={
        "properties": {
            "resellers": {
                "type": "nested",
                "properties": {
                    "reseller": {
                        "type": "keyword"
                    },
                    "price": {
                        "type": "double"
                    }
                }
            }
        }
    },
)
print(resp)
----
