# Sorting by deeply nested filters

**URL:** <https://discuss.elastic.co/t/sorting-by-deeply-nested-filters/15123>\
**Category:** Elasticsearch\
**Created:** [January 7, 2014, 10:15am UTC](https://discuss.elastic.co/t/sorting-by-deeply-nested-filters/15123 "2014-01-07T10:15:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vesa\_Marttila](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vesa_marttila/32/1886_2.png) [@Vesa\_Marttila](https://discuss.elastic.co/u/Vesa_Marttila)\
**Post date:** [January 7, 2014, 10:15am UTC](https://discuss.elastic.co/t/sorting-by-deeply-nested-filters/15123/1 "2014-01-07T10:15:42Z")

</div>

Hi,

I am trying to sort with a twice nested filter, this doesn't seem to work.  
My question is that is this even supposed to be possible? I can provide the  
query if necessary, but it is quite complicated and requires a bit of  
obfuscating.

Sincerely,  
Vesa Marttila

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/e13c168e-b6c4-42e3-a536-ed9310fc2500%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/e13c168e-b6c4-42e3-a536-ed9310fc2500%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Vesa\_Marttila](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vesa_marttila/32/1886_2.png) [@Vesa\_Marttila](https://discuss.elastic.co/u/Vesa_Marttila)\
**Post date:** [January 7, 2014, 10:46am UTC](https://discuss.elastic.co/t/sorting-by-deeply-nested-filters/15123/2 "2014-01-07T10:46:12Z")

</div>

On Tuesday, January 7, 2014 12:15:42 PM UTC+2, Vesa Marttila wrote:

> Hi,
> 
> I am trying to sort with a twice nested filter, this doesn't seem to work.  
> My question is that is this even supposed to be possible? I can provide the  
> query if necessary, but it is quite complicated and requires a bit of  
> obfuscating.
> 
> Sincerely,  
> Vesa Marttila

Just to add, the filter when used for queries works as desired, the  
problems only occur when using it in sorting.

Vesa

--  
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).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/2537e5a8-7cb4-4d71-af44-5c7948793641%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/2537e5a8-7cb4-4d71-af44-5c7948793641%40googlegroups.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, 1:58am UTC](https://discuss.elastic.co/t/sorting-by-deeply-nested-filters/15123/3 "2017-07-06T01:58:04Z")

</div>


