# Scoring and explain

**URL:** https://discuss.elastic.co/t/scoring-and-explain/20603
**Category:** Elasticsearch
**Created:** [November 6, 2014, 11:30am UTC](https://discuss.elastic.co/t/scoring-and-explain/20603 "2014-11-06T11:30:26Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Guillaume\_H](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Guillaume\_H](https://discuss.elastic.co/u/Guillaume_H)
#### Post date: [November 6, 2014, 11:30am UTC](https://discuss.elastic.co/t/scoring-and-explain/20603/1 "2014-11-06T11:30:26Z")

</div>

Hi guys,

I'm developing a scoring plugin and I need to display some information  
about score computation. I need to display the reason(s) why I have this  
score, which criteria matched etc..  
I currently implement ExplainableSearchScript interface and use Explain  
feature to retrieve that info.

I think it's not the best way to get scoring reason because of overload  
during hit fetch and because this interface is not in 1.4 branch anymore.  
My first thought is to add a new field in response but it really doesn't  
seems obvious ...

So what can I do to get scoring information efficiently ?

Thanks !  
Guillaume

ES 1.3.3  
Lucene 4.9.1

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f143fdfc-8d57-4b5b-a505-ddb534bbfb8b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f143fdfc-8d57-4b5b-a505-ddb534bbfb8b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Nick\_Tarleton\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nick_tarleton_2/32/1100_2.png) [@Nick\_Tarleton\_2](https://discuss.elastic.co/u/Nick_Tarleton_2)
#### Post date: [November 19, 2014, 3:04am UTC](https://discuss.elastic.co/t/scoring-and-explain/20603/2 "2014-11-19T03:04:05Z")

</div>

On Thursday, November 6, 2014 3:30:26 AM UTC-8, Guillaume H wrote:

> Hi guys,
> 
> I'm developing a scoring plugin and I need to display some information  
> about score computation. I need to display the reason(s) why I have this  
> score, which criteria matched etc..  
> I currently implement ExplainableSearchScript interface and use Explain  
> feature to retrieve that info.
> 
> I think it's not the best way to get scoring reason because of overload  
> during hit fetch and because this interface is not in 1.4 branch anymore.  
> My first thought is to add a new field in response but it really doesn't  
> seems obvious ...
> 
> So what can I do to get scoring information efficiently ?

I also have this issue. I've been using ExplainableSearchScript to add  
information computed in the scoring script to the explanation for  
debugging, but it's gone in 1.4. Is there any other way (doesn't have to be  
efficient) to get information out of a script into the search response?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/5a038538-3930-4540-b941-405b60711052%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/5a038538-3930-4540-b941-405b60711052%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Guillaume\_H](https://avatars.discourse-cdn.com/v4/letter/g/4bbf92/32.png) [@Guillaume\_H](https://discuss.elastic.co/u/Guillaume_H)
#### Post date: [March 31, 2015, 9:47am UTC](https://discuss.elastic.co/t/scoring-and-explain/20603/3 "2015-03-31T09:47:58Z")

</div>

FYI ExplainableSearchScript interface is back in 1.4 branch.

Le mercredi 19 novembre 2014 04:04:05 UTC+1, Nick Tarleton a écrit :

> On Thursday, November 6, 2014 3:30:26 AM UTC-8, Guillaume H wrote:
> 
> > Hi guys,
> > 
> > I'm developing a scoring plugin and I need to display some information  
> > about score computation. I need to display the reason(s) why I have this  
> > score, which criteria matched etc..  
> > I currently implement ExplainableSearchScript interface and use Explain  
> > feature to retrieve that info.
> > 
> > I think it's not the best way to get scoring reason because of overload  
> > during hit fetch and because this interface is not in 1.4 branch anymore.  
> > My first thought is to add a new field in response but it really doesn't  
> > seems obvious ...
> > 
> > So what can I do to get scoring information efficiently ?
> 
> I also have this issue. I've been using ExplainableSearchScript to add  
> information computed in the scoring script to the explanation for  
> debugging, but it's gone in 1.4. Is there any other way (doesn't have to be  
> efficient) to get information out of a script into the search response?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/478f8ffc-a9dd-40fc-9b84-a0b292c15a37%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/478f8ffc-a9dd-40fc-9b84-a0b292c15a37%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:22am UTC](https://discuss.elastic.co/t/scoring-and-explain/20603/4 "2017-07-06T00:22:50Z")

</div>


