# Parent-child document structure

**URL:** <https://discuss.elastic.co/t/parent-child-document-structure/162703>\
**Category:** Elasticsearch\
**Created:** [January 2, 2019, 7:09pm UTC](https://discuss.elastic.co/t/parent-child-document-structure/162703 "2019-01-02T19:09:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yesu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yesu/32/48857_2.png) [@yesu](https://discuss.elastic.co/u/yesu)\
**Post date:** [January 2, 2019, 7:09pm UTC](https://discuss.elastic.co/t/parent-child-document-structure/162703/1 "2019-01-02T19:09:57Z")

</div>

Parent-child document structure compatibility to migrate data from elasticsearch5.6.9 to elasticsearch6, Please help me solutions to migrate data(re-index).

---

<div class="post-metadata">

**Author:** ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)\
**Post date:** [January 3, 2019, 3:11pm UTC](https://discuss.elastic.co/t/parent-child-document-structure/162703/2 "2019-01-03T15:11:25Z")

</div>

This post should help you with that: [Dec 15th, 2017: [EN][Elasticsearch] Going from multiple types to one type with the Reindex API](https://discuss.elastic.co/t/dec-15th-2017-en-elasticsearch-going-from-multiple-types-to-one-type-with-the-reindex-api/111315)

One thing: the post is a little bit outdated as it recommends using `doc` as the new document type. Nowadays, it's recommended to use `_doc` instead, as that will make future migrations to version 7 easier.

---

<div class="post-metadata">

**Author:** ![yesu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/yesu/32/48857_2.png) [@yesu](https://discuss.elastic.co/u/yesu)\
**Post date:** [January 3, 2019, 5:26pm UTC](https://discuss.elastic.co/t/parent-child-document-structure/162703/3 "2019-01-03T17:26:25Z")

</div>

Thanks a lot, It work's for me.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 31, 2019, 5:26pm UTC](https://discuss.elastic.co/t/parent-child-document-structure/162703/4 "2019-01-31T17:26:27Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
