# Parent/Child Types and removable of types

**URL:** https://discuss.elastic.co/t/parent-child-types-and-removable-of-types/96394
**Category:** Elasticsearch
**Created:** [August 9, 2017, 7:52am UTC](https://discuss.elastic.co/t/parent-child-types-and-removable-of-types/96394 "2017-08-09T07:52:19Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pksorensen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pksorensen/32/20934_2.png) [@pksorensen](https://discuss.elastic.co/u/pksorensen)
#### Post date: [August 9, 2017, 7:52am UTC](https://discuss.elastic.co/t/parent-child-types-and-removable-of-types/96394/1 "2017-08-09T07:52:19Z")

</div>

Hi

I am a new user to ES and just read [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). One of the first things I been setting up is a index in NEST and c# that has multiple types (but they are similar).

When I read it, i get the impression that types are being removed and I could not fully understand what this means for parent/child.

I already more or less designed my types for this index such the type information i not needed, the entities has their own property Type which can be used in queries and deserialization to distinct them from eachother.

With coming changes, should I still in mappings tell it .Parent ? like I have done here  
[https://stackoverflow.com/questions/45577460/how-to-create-index-of-polymorphic-data-in-elastic-search-with-nest](https://stackoverflow.com/questions/45577460/how-to-create-index-of-polymorphic-data-in-elastic-search-with-nest) or is it enough to just set the parent when indexing like i done here

```auto
 public IIndexRequest Selector(IndexDescriptor<ResourceEntity> resourceDescription)
        {
           resourceDescription.Id(NormalizedId).Routing(Routing);

           if (HasParent)
                resourceDescription.Parent(NormalizedParentId);          

            return resourceDescription;
        }

```

Should child's still be on the same shard as their parent?  
In my Parent Poco´s, should they have a property for the children or does it not matter since I can just query for the children? `public List<Child> Children {get;set;}`

I know there are multiple questions in here, but being a first timer this is everything that I am not sure about after a few days of playing around and would much appreciate if anyone can answer partly or fully on everything.

---

<div class="post-metadata">

### Author: ![shanec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shanec/32/4004_2.png) [@shanec](https://discuss.elastic.co/u/shanec)
#### Post date: [August 11, 2017, 6:29pm UTC](https://discuss.elastic.co/t/parent-child-types-and-removable-of-types/96394/2 "2017-08-11T18:29:56Z")

</div>

For parent/child, this functionality is moving into a special `join` type that we're planning to introduce in 5.6. Under the covers, it's basically the same idea as parent/child, but supports a typeless future. You can read about it [here](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/parent-join.html), including the caveats. Note: we haven't yet released 5.6.

I will say that if you create an index in 5.x, it'll continue to work as-is in 6.x (though it's possible that certain features we develop over 6.x may not be available to these). It's only any new indices that you create on or after upgrading to 6.x that will _need_ the `join` type.

---

<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: [September 8, 2017, 6:30pm UTC](https://discuss.elastic.co/t/parent-child-types-and-removable-of-types/96394/3 "2017-09-08T18:30:15Z")

</div>

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