# Is it possible getting parent doc's score in nested query?

**URL:** <https://discuss.elastic.co/t/is-it-possible-getting-parent-docs-score-in-nested-query/69727>\
**Category:** Elasticsearch\
**Created:** [December 22, 2016, 2:58am UTC](https://discuss.elastic.co/t/is-it-possible-getting-parent-docs-score-in-nested-query/69727 "2016-12-22T02:58:27Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [December 27, 2016, 9:23am UTC](https://discuss.elastic.co/t/is-it-possible-getting-parent-docs-score-in-nested-query/69727/11 "2016-12-27T09:23:46Z")

</div>

Queries wrapped by the `nested` query can't access the score of the parent  
document, because at the time of scoring the parent document hasn't been  
matched yet and therefor its score hasn't been computed yet.

---

_[View the full topic](https://discuss.elastic.co/t/is-it-possible-getting-parent-docs-score-in-nested-query/69727)._
