# Elasticsearch 7.0 Hierarchy Search

**URL:** <https://discuss.elastic.co/t/elasticsearch-7-0-hierarchy-search/181318>\
**Category:** Elasticsearch\
**Created:** [May 16, 2019, 6:41am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-hierarchy-search/181318 "2019-05-16T06:41:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Choo\_Kar\_Chun](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/choo_kar_chun/32/46266_2.png) [@Choo\_Kar\_Chun](https://discuss.elastic.co/u/Choo_Kar_Chun)\
**Post date:** [May 16, 2019, 6:41am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-hierarchy-search/181318/1 "2019-05-16T06:41:35Z")

</div>

Hello! Is there any way to get any parent/child data with their scores?  
If you take a look below:

 ![44](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b824e494119dd5f1129b7da49a5414d606291ac.jpeg)

For example, if "Relational Database" is matched, it should display the result with the highest score,followed by its parent "SQL" with a lower score, then "Database" with even lower score.

Any advice is appreciated!

---

<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:** [June 13, 2019, 6:41am UTC](https://discuss.elastic.co/t/elasticsearch-7-0-hierarchy-search/181318/2 "2019-06-13T06:41:37Z")

</div>

Closed on June 13, 2019, 6:41am UTC

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