# Named query within nested query

**URL:** <https://discuss.elastic.co/t/named-query-within-nested-query/215923>\
**Category:** Elasticsearch\
**Created:** [January 21, 2020, 4:57pm UTC](https://discuss.elastic.co/t/named-query-within-nested-query/215923 "2020-01-21T16:57:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![meirshal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/meirshal/32/61444_2.png) [@meirshal](https://discuss.elastic.co/u/meirshal)\
**Post date:** [January 21, 2020, 4:57pm UTC](https://discuss.elastic.co/t/named-query-within-nested-query/215923/1 "2020-01-21T16:57:19Z")

</div>

Hey folks!  
I’ve encountered something that looked to me like a bug, involving named queries inside nested queries. I’ve also found this issue on Github: [https://github.com/elastic/elasticsearch/issues/46231](https://github.com/elastic/elasticsearch/issues/46231)  
It looks very much like what we encounter. Does anyone know if that’s supposed to be addressed in any near version? Is there something I can do to help prioritise this issue against other issues?

---

<div class="post-metadata">

**Author:** ![PeledYuval](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@PeledYuval](https://discuss.elastic.co/u/PeledYuval)\
**Post date:** [January 22, 2020, 8:17am UTC](https://discuss.elastic.co/t/named-query-within-nested-query/215923/2 "2020-01-22T08:17:24Z")

</div>

+1 to this request - we use a very complicated query and named queries help us a lot with understanding the way elastic scores our documents. Using them in a nested context would be amazing.

---

<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:** [February 19, 2020, 8:17am UTC](https://discuss.elastic.co/t/named-query-within-nested-query/215923/3 "2020-02-19T08:17:29Z")

</div>

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