# Sorting on child types

**URL:** <https://discuss.elastic.co/t/sorting-on-child-types/4573>\
**Category:** Elasticsearch\
**Created:** [June 8, 2011, 1:25pm UTC](https://discuss.elastic.co/t/sorting-on-child-types/4573 "2011-06-08T13:25:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Kriesten](https://avatars.discourse-cdn.com/v4/letter/j/43a26b/32.png) [@Jan\_Kriesten](https://discuss.elastic.co/u/Jan_Kriesten)\
**Post date:** [June 8, 2011, 1:25pm UTC](https://discuss.elastic.co/t/sorting-on-child-types/4573/1 "2011-06-08T13:25:58Z")

</div>

Hi,

this issue has been raised before and the idea to do this 'had to be  
ironed out'. Is there an update to this?

I'm hitting a case where I need to sort on child fields.

Best regards, --- Jan.

---

<div class="post-metadata">

**Author:** ![fashionalwallet](https://avatars.discourse-cdn.com/v4/letter/f/839c29/32.png) [@fashionalwallet](https://discuss.elastic.co/u/fashionalwallet)\
**Post date:** [June 9, 2011, 9:08am UTC](https://discuss.elastic.co/t/sorting-on-child-types/4573/2 "2011-06-09T09:08:22Z")

</div>

- deleted -

---

<div class="post-metadata">

**Author:** ![Bryan\_Green](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bryan_green/32/3028_2.png) [@Bryan\_Green](https://discuss.elastic.co/u/Bryan_Green)\
**Post date:** [June 9, 2011, 2:25pm UTC](https://discuss.elastic.co/t/sorting-on-child-types/4573/3 "2011-06-09T14:25:37Z")

</div>

+1 for searching on children (or at least allowing sorting over array  
values in an item.)

In fact, this is the problem that I need to overcome this morning. I  
think I am going to simply create my own child/parent item. To aid in  
searching, I'll merge the child into the parent and save this as an  
"item instance" that I'll only use when I need to search by a child  
param (and then even a parent param as well.)

I control the flow of items into elasticsearch so I can control the  
pseudo-child item creation as well. I identify the items I search for  
before searching, so I'm not worried about these extra items. Worried  
about index size?... yes.

-Bryan

On Jun 8, 8:25 am, Jan Kriesten [kries...@mail.footprint.de](mailto:kries...@mail.footprint.de) wrote:

> Hi,
> 
> this issue has been raised before and the idea to do this 'had to be  
> ironed out'. Is there an update to this?
> 
> I'm hitting a case where I need to sort on child fields.
> 
> Best regards, --- Jan.

---

<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 6, 2017, 4:04am UTC](https://discuss.elastic.co/t/sorting-on-child-types/4573/4 "2017-07-06T04:04:17Z")

</div>

Closed on July 6, 2017, 4:04am UTC


