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

[source, python]
----
resp = client.indices.create(
    index="child_example",
    mappings={
        "properties": {
            "join": {
                "type": "join",
                "relations": {
                    "question": "answer"
                }
            }
        }
    },
)
print(resp)
----
