# How to auto index parent document

**URL:** <https://discuss.elastic.co/t/how-to-auto-index-parent-document/154780>\
**Category:** Elasticsearch\
**Created:** [October 31, 2018, 9:10am UTC](https://discuss.elastic.co/t/how-to-auto-index-parent-document/154780 "2018-10-31T09:10:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luzhzhsoft](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@luzhzhsoft](https://discuss.elastic.co/u/luzhzhsoft)\
**Post date:** [October 31, 2018, 9:10am UTC](https://discuss.elastic.co/t/how-to-auto-index-parent-document/154780/1 "2018-10-31T09:10:41Z")

</div>

When use join type .we need create parent document first.But index may be auto created by template .such as index by day.So when create a new index,we need get old parent data from old index,and index it to new index .

---

<div class="post-metadata">

**Author:** ![luzhzhsoft](https://avatars.discourse-cdn.com/v4/letter/l/e8c25b/32.png) [@luzhzhsoft](https://discuss.elastic.co/u/luzhzhsoft)\
**Post date:** [October 31, 2018, 9:12am UTC](https://discuss.elastic.co/t/how-to-auto-index-parent-document/154780/2 "2018-10-31T09:12:11Z")

</div>

so how to auto index parent document or how to create child document without parent document

---

<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:** [November 28, 2018, 9:12am UTC](https://discuss.elastic.co/t/how-to-auto-index-parent-document/154780/3 "2018-11-28T09:12:22Z")

</div>

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