# Will removing types in 7.x allow n-n relation between documents?

**URL:** <https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004>\
**Category:** Elasticsearch\
**Created:** [June 12, 2017, 9:33am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004 "2017-06-12T09:33:16Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreejithyes](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sreejithyes](https://discuss.elastic.co/u/sreejithyes)\
**Post date:** [June 12, 2017, 9:33am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/1 "2017-06-12T09:33:16Z")

</div>

I read a post about the upcoming changes in elasictsearch, which says the types will be removed from 7.x. And the 'parent' field will be replaced by 'join'.

Current versions of elasticsearch is not allowing multiple parent for a child. Now when 'parent' concept is replaced by 'join', will that support N-N relationship between documents?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 12, 2017, 9:33am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/2 "2017-06-12T09:33:59Z")

</div>

Have a read of [https://www.elastic.co/blog/index-type-parent-child-join-now-future-in-elasticsearch](https://www.elastic.co/blog/index-type-parent-child-join-now-future-in-elasticsearch)

---

<div class="post-metadata">

**Author:** ![sreejithyes](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sreejithyes](https://discuss.elastic.co/u/sreejithyes)\
**Post date:** [June 12, 2017, 9:39am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/3 "2017-06-12T09:39:12Z")

</div>

Thanks Mark for the quick reply.

But I read this post earlier and I am confused 🙂

I understand that types will be removed and parent will be replaced by joins.

I just want to know whether the new join field will support N-N relationship?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 13, 2017, 8:25am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/4 "2017-06-13T08:25:54Z")

</div>

It will support the same as what parent/child supports. It won't support many parents for a child for eg.

---

<div class="post-metadata">

**Author:** ![sreejithyes](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sreejithyes](https://discuss.elastic.co/u/sreejithyes)\
**Post date:** [June 15, 2017, 6:02am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/5 "2017-06-15T06:02:36Z")

</div>

Thank you, Mark

---

<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:** [July 13, 2017, 6:02am UTC](https://discuss.elastic.co/t/will-removing-types-in-7-x-allow-n-n-relation-between-documents/89004/6 "2017-07-13T06:02:56Z")

</div>

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