# Question regarding to the \_score and \_explanation.value

**URL:** https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695
**Category:** Elasticsearch
**Created:** [September 19, 2013, 7:31pm UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695 "2013-09-19T19:31:50Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Evan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evan_2/32/2163_2.png) [@Evan\_2](https://discuss.elastic.co/u/Evan_2)
#### Post date: [September 19, 2013, 7:31pm UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/1 "2013-09-19T19:31:50Z")

</div>

I am doing some queries with explain: true but notice that sometimes the  
\_score is not the same as the \_explanation.value.  
Should the \_score for each match the same as the \_explanation.value? Or the  
\_score involves in more calculation on top of the \_explanation.value?

Thanks.

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)
#### Post date: [September 20, 2013, 7:27am UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/2 "2013-09-20T07:27:35Z")

</div>

Hi,

On Thu, Sep 19, 2013 at 9:31 PM, [evan@evanwong.io](mailto:evan@evanwong.io) wrote:

> I am doing some queries with explain: true but notice that sometimes the  
> \_score is not the same as the \_explanation.value.  
> Should the \_score for each match the same as the \_explanation.value? Or  
> the \_score involves in more calculation on top of the \_explanation.value?

Can you give an example of a query which has a different \_score and  
\_explanation.value?  
\*  
Thanks.

--  
Adrien Grand

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Evan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evan_2/32/2163_2.png) [@Evan\_2](https://discuss.elastic.co/u/Evan_2)
#### Post date: [September 20, 2013, 3:59pm UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/3 "2013-09-20T15:59:22Z")

</div>

The \_explanation.value is coming back as 0 (even with a match) but the  
\_score is coming back with some value.  
[Gist](https://gist.github.com/evanwong/6638420)

Is this a bug that I should open an issue to track?

On Friday, September 20, 2013 3:27:35 AM UTC-4, Adrien Grand wrote:

> Hi,
> 
> On Thu, Sep 19, 2013 at 9:31 PM, \<[ev...@evanwong.io](mailto:ev...@evanwong.io) \<javascript:\>\> wrote:
> 
> > I am doing some queries with explain: true but notice that sometimes the  
> > \_score is not the same as the \_explanation.value.  
> > Should the \_score for each match the same as the \_explanation.value? Or  
> > the \_score involves in more calculation on top of the \_explanation.value?
> 
> Can you give an example of a query which has a different \_score and  
> \_explanation.value?  
> \*  
> Thanks.
> 
> --  
> Adrien Grand

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Evan\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/evan_2/32/2163_2.png) [@Evan\_2](https://discuss.elastic.co/u/Evan_2)
#### Post date: [September 20, 2013, 5:10pm UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/4 "2013-09-20T17:10:15Z")

</div>

By the way, I am using 0.90.3.

On Friday, September 20, 2013 11:59:22 AM UTC-4, [ev...@evanwong.io](mailto:ev...@evanwong.io) wrote:

> The \_explanation.value is coming back as 0 (even with a match) but the  
> \_score is coming back with some value.  
> [Gist](https://gist.github.com/evanwong/6638420)
> 
> Is this a bug that I should open an issue to track?
> 
> On Friday, September 20, 2013 3:27:35 AM UTC-4, Adrien Grand wrote:
> 
> > Hi,
> > 
> > On Thu, Sep 19, 2013 at 9:31 PM, [ev...@evanwong.io](mailto:ev...@evanwong.io) wrote:
> > 
> > > I am doing some queries with explain: true but notice that sometimes the  
> > > \_score is not the same as the \_explanation.value.  
> > > Should the \_score for each match the same as the \_explanation.value? Or  
> > > the \_score involves in more calculation on top of the \_explanation.value?
> > 
> > Can you give an example of a query which has a different \_score and  
> > \_explanation.value?  
> > \*  
> > Thanks.
> > 
> > --  
> > Adrien Grand

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

### Author: ![Sebastian\_Cuy](https://avatars.discourse-cdn.com/v4/letter/s/a698b9/32.png) [@Sebastian\_Cuy](https://discuss.elastic.co/u/Sebastian_Cuy)
#### Post date: [October 29, 2013, 2:36pm UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/5 "2013-10-29T14:36:15Z")

</div>

Hi,

I recently encountered the same issue in 0.90.5. You can reproduce this  
behavior with the following gist: [How to reproduce zero values for \_explanation in elasticsearch. · GitHub](https://gist.github.com/scuy/7215710)

Boosting the field seems to cause the term frequency to become zero, but  
only for the explanation value. The score is still computed accurately.

Should I open an issue for this?

Sebastian

Am Freitag, 20. September 2013 19:10:15 UTC+2 schrieb [ev...@evanwong.io](mailto:ev...@evanwong.io):

> By the way, I am using 0.90.3.
> 
> On Friday, September 20, 2013 11:59:22 AM UTC-4, [ev...@evanwong.io](mailto:ev...@evanwong.io) wrote:
> 
> > The \_explanation.value is coming back as 0 (even with a match) but the  
> > \_score is coming back with some value.  
> > [Gist](https://gist.github.com/evanwong/6638420)
> > 
> > Is this a bug that I should open an issue to track?
> > 
> > On Friday, September 20, 2013 3:27:35 AM UTC-4, Adrien Grand wrote:
> > 
> > > Hi,
> > > 
> > > On Thu, Sep 19, 2013 at 9:31 PM, [ev...@evanwong.io](mailto:ev...@evanwong.io) wrote:
> > > 
> > > > I am doing some queries with explain: true but notice that sometimes  
> > > > the \_score is not the same as the \_explanation.value.  
> > > > Should the \_score for each match the same as the \_explanation.value? Or  
> > > > the \_score involves in more calculation on top of the \_explanation.value?
> > > 
> > > Can you give an example of a query which has a different \_score and  
> > > \_explanation.value?  
> > > \*  
> > > Thanks.
> > > 
> > > --  
> > > Adrien Grand

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:10am UTC](https://discuss.elastic.co/t/question-regarding-to-the--score-and--explanation-value/13695/6 "2017-07-06T02:10:00Z")

</div>


