# Parent cannot be sorted by chlidren's field

**URL:** <https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528>\
**Category:** Elasticsearch\
**Created:** [January 27, 2012, 6:14pm UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528 "2012-01-27T18:14:39Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eugene\_Strokin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eugene_strokin/32/1238_2.png) [@Eugene\_Strokin](https://discuss.elastic.co/u/Eugene_Strokin)\
**Post date:** [January 27, 2012, 6:14pm UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528/1 "2012-01-27T18:14:39Z")

</div>

Hello. I have parent/child mapping for my docs.  
I search for parent documents using children's field, and it works  
fine.  
But I need to sort found documents by children's field as well. As far  
as I can see it is not possible in ES.  
Am I correct? If not, could you pint me to some documentation or  
example of how to do this.

Thank you,  
Eugene S.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [January 27, 2012, 9:21pm UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528/2 "2012-01-27T21:21:47Z")

</div>

You are correct, its not possible to do so.

On Friday, January 27, 2012 at 8:14 PM, Eugene Strokin wrote:

> Hello. I have parent/child mapping for my docs.  
> I search for parent documents using children's field, and it works  
> fine.  
> But I need to sort found documents by children's field as well. As far  
> as I can see it is not possible in ES.  
> Am I correct? If not, could you pint me to some documentation or  
> example of how to do this.
> 
> Thank you,  
> Eugene S.

---

<div class="post-metadata">

**Author:** ![grantgochnauer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/grantgochnauer/32/2300_2.png) [@grantgochnauer](https://discuss.elastic.co/u/grantgochnauer)\
**Post date:** [February 28, 2013, 5:33pm UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528/3 "2013-02-28T17:33:30Z")

</div>

Hello,

I just ran into the same need and noticed this thread was a year old. I wanted to follow-up to ask if it has become possible in the last year?

thanks

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 1, 2013, 6:29am UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528/4 "2013-03-01T06:29:05Z")

</div>

Try reading Clinton's post on SO:

> <https://stackoverflow.com/questions/14504180/elasticsearch-sorting-by-nested-documents-values/14519947#14519947>

On Thu, Feb 28, 2013 at 9:33 AM, grantgochnauer  
[grant.gochnauer@vodori.com](mailto:grant.gochnauer@vodori.com)wrote:

> Hello,
> 
> I just ran into the same need and noticed this thread was a year old. I  
> wanted to follow-up to ask if it has become possible in the last year?
> 
> thanks
> 
> --  
> View this message in context:  
> [http://elasticsearch-users.115913.n3.nabble.com/Parent-cannot-be-sorted-by-chlidren-s-field-tp3694063p4030748.html](http://elasticsearch-users.115913.n3.nabble.com/Parent-cannot-be-sorted-by-chlidren-s-field-tp3694063p4030748.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:48am UTC](https://discuss.elastic.co/t/parent-cannot-be-sorted-by-chlidrens-field/6528/5 "2017-07-06T02:48:55Z")

</div>


