# Is there anyway to access the \_explanation variable in a re-score script?

**URL:** <https://discuss.elastic.co/t/is-there-anyway-to-access-the-explanation-variable-in-a-re-score-script/118282>\
**Category:** Elasticsearch\
**Created:** [February 2, 2018, 9:05pm UTC](https://discuss.elastic.co/t/is-there-anyway-to-access-the-explanation-variable-in-a-re-score-script/118282 "2018-02-02T21:05:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernabas](https://avatars.discourse-cdn.com/v4/letter/b/3ec8ea/32.png) [@bernabas](https://discuss.elastic.co/u/bernabas)\
**Post date:** [February 2, 2018, 9:05pm UTC](https://discuss.elastic.co/t/is-there-anyway-to-access-the-explanation-variable-in-a-re-score-script/118282/1 "2018-02-02T21:05:44Z")

</div>

I know you can access \_score in a script, but is it possible to access the \_explanation value so i can breakdown and see how the different attributes / queries were scored in my rescore script?

---

<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:** [March 2, 2018, 9:19pm UTC](https://discuss.elastic.co/t/is-there-anyway-to-access-the-explanation-variable-in-a-re-score-script/118282/2 "2018-03-02T21:19:11Z")

</div>

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