Mapping document relationships PUT /department/_mapping { "properties": { "join_field": { "type": "join", "relations": { "department": "employee" } } } }