# Accessing scores for highlight snippets?

**URL:** <https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559>\
**Category:** Elasticsearch\
**Created:** [July 30, 2015, 10:14am UTC](https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559 "2015-07-30T10:14:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![trebedea](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@trebedea](https://discuss.elastic.co/u/trebedea)\
**Post date:** [July 30, 2015, 10:14am UTC](https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559/1 "2015-07-30T10:14:56Z")

</div>

Hi,

Is there a simple way to access the scores assigned by the highlighter to the returned snippets?  
Looking in the source code this seems impossible because the scores of the snippets are not returned although they are used for ranking the snippets to select the best ones. Am I missing something? Or do you know the reason for not returning these scores?

I have read read the discussion here ([Does elasticsearch support minimum score in highlight query?](https://discuss.elastic.co/t/does-elasticsearch-support-minimum-score-in-highlight-query/21426/1)) which seems related to my question.

Thanks,  
Traian

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [July 30, 2015, 2:06pm UTC](https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559/2 "2015-07-30T14:06:09Z")

</div>

This isn't exposed right now, no. This'd probably be possible with some of the highlighters and not others. Scores would be super inconsistent across highlighters too but they could be used for comparison between snippets on the same document.

You could certainly open an issue to request the feature.

---

<div class="post-metadata">

**Author:** ![trebedea](https://avatars.discourse-cdn.com/v4/letter/t/90db22/32.png) [@trebedea](https://discuss.elastic.co/u/trebedea)\
**Post date:** [August 3, 2015, 3:41pm UTC](https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559/3 "2015-08-03T15:41:14Z")

</div>

Thanks, Nik! I just wanted to be sure that I am not missing something.  
I guess there are few use-cases where this information might be useful.

Traian

---

<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, 11:57pm UTC](https://discuss.elastic.co/t/accessing-scores-for-highlight-snippets/26559/4 "2017-07-05T23:57:41Z")

</div>


