Question regarding to the _score and _explanation.value


(Evan-2) #1

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.
For more options, visit https://groups.google.com/groups/opt_out.


(Adrien Grand) #2

Hi,

On Thu, Sep 19, 2013 at 9:31 PM, 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.
For more options, visit https://groups.google.com/groups/opt_out.


(Evan-2) #3

The _explanation.value is coming back as 0 (even with a match) but the
_score is coming back with some value.
Gist

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 <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.
For more options, visit https://groups.google.com/groups/opt_out.


(Evan-2) #4

By the way, I am using 0.90.3.

On Friday, September 20, 2013 11:59:22 AM UTC-4, 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

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 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.
For more options, visit https://groups.google.com/groups/opt_out.


(Sebastian Cuy) #5

Hi,

I recently encountered the same issue in 0.90.5. You can reproduce this
behavior with the following gist: 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:

By the way, I am using 0.90.3.

On Friday, September 20, 2013 11:59:22 AM UTC-4, 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

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 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.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #6