# Explain Result Output: Nested Level of Description with Weight or CustomScore

**URL:** <https://discuss.elastic.co/t/explain-result-output-nested-level-of-description-with-weight-or-customscore/17080>\
**Category:** Elasticsearch\
**Created:** [April 18, 2014, 3:05pm UTC](https://discuss.elastic.co/t/explain-result-output-nested-level-of-description-with-weight-or-customscore/17080 "2014-04-18T15:05:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![suhaas](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@suhaas](https://discuss.elastic.co/u/suhaas)\
**Post date:** [April 18, 2014, 3:05pm UTC](https://discuss.elastic.co/t/explain-result-output-nested-level-of-description-with-weight-or-customscore/17080/1 "2014-04-18T15:05:47Z")

</div>

Hi,

I am parsing Elasticsearch explain output. I am trying to find out how deep can be be the first relevant description as part of value, description, details combination. I am trying to parse descriptions that have either "weight" or "CustomScore".

As I could not find a Json parser that has XPath like functionality in finding sibling nodes (say I found a description node because matched on string "weight(" then I want to collect the "value" which is sibling node) I am relying on recursion. I have seen a description with "weight" or "CustomScore" to be 5 levels deep, from the first value, description, details combination. this is ok by me. I was wondering if it ever goes to higher magnitutes say 10, 20 or 30.

Regards,

Suhaas

---

<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:35am UTC](https://discuss.elastic.co/t/explain-result-output-nested-level-of-description-with-weight-or-customscore/17080/2 "2017-07-06T01:35:01Z")

</div>

Closed on July 6, 2017, 1:35am UTC


