# Boost with score from child or parent

**URL:** <https://discuss.elastic.co/t/boost-with-score-from-child-or-parent/52576>\
**Category:** Elasticsearch\
**Created:** [June 13, 2016, 8:36am UTC](https://discuss.elastic.co/t/boost-with-score-from-child-or-parent/52576 "2016-06-13T08:36:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ulrik\_Pedersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ulrik_pedersen/32/11352_2.png) [@Ulrik\_Pedersen](https://discuss.elastic.co/u/Ulrik_Pedersen)\
**Post date:** [June 13, 2016, 8:36am UTC](https://discuss.elastic.co/t/boost-with-score-from-child-or-parent/52576/1 "2016-06-13T08:36:05Z")

</div>

My mapping is done so every parent have one or more children.

The trick is to query the childrens and when a hit is found - do the same query against the parent and then boost the result with the score from the parent.

Can this be done in one taks or do I have to make this logic in my application?

---

<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 5, 2017, 10:44pm UTC](https://discuss.elastic.co/t/boost-with-score-from-child-or-parent/52576/2 "2017-07-05T22:44:24Z")

</div>


