You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Brian Narsi <bn...@gmail.com> on 2015/11/06 20:04:51 UTC

Solr results relevancy / scoring

I have a situation where.

User search query

q=15%

Solr results contain several documents that are

15%
15%
15%
15%
15 (why?)
15%
15%

I have debugged the query and can see that the score for 15 is higher than
the ones below it.

Why is that? Where can I read in detail about how the scoring is being done?

Thanks

Re: Solr results relevancy / scoring

Posted by Doug Turnbull <dt...@opensourceconnections.com>.
You might paste your URL into http://splainer.io and it will explain your
results ranking to you in a perhaps more helpful way

-Doug

On Fri, Nov 6, 2015 at 2:04 PM, Brian Narsi <bn...@gmail.com> wrote:

> I have a situation where.
>
> User search query
>
> q=15%
>
> Solr results contain several documents that are
>
> 15%
> 15%
> 15%
> 15%
> 15 (why?)
> 15%
> 15%
>
> I have debugged the query and can see that the score for 15 is higher than
> the ones below it.
>
> Why is that? Where can I read in detail about how the scoring is being
> done?
>
> Thanks
>



-- 
*Doug Turnbull **| *Search Relevance Consultant | OpenSource Connections
<http://opensourceconnections.com>, LLC | 240.476.9983
Author: Relevant Search <http://manning.com/turnbull>
This e-mail and all contents, including attachments, is considered to be
Company Confidential unless explicitly stated otherwise, regardless
of whether attachments are marked as such.

Re: Solr results relevancy / scoring

Posted by Brian Narsi <bn...@gmail.com>.
Yes the term was getting tokenized as 15. And Norms are not ignored.

Thank you for helping understand the issue.

On Mon, Nov 9, 2015 at 6:07 AM, Alessandro Benedetti <ab...@apache.org>
wrote:

>  I quote Emir and I would like to ask if the Norms are ignored or not.
> If they are not ignored and 15 is one of the search tokens, I can expect an
> high score for a doc containing "15" because the Norm value will be quite
> high ( as the field contains basically exactly the query term).
>
> Cheers
>
> On 9 November 2015 at 10:01, Emir Arnautovic <emir.arnautovic@sematext.com
> >
> wrote:
>
> > To get answer for why 15, you can use field analysis for index/query and
> > see that "15%" is probably tokenized and as both 15 and 15%.
> >
> > Emir
> >
> >
> > On 06.11.2015 20:22, Erick Erickson wrote:
> >
> >> I'm not sure what the question your asking is. You say
> >> that you have debugged the query and the score for 15 is
> >> higher than the ones below it. What's surprising about that?
> >>
> >> Are you saying you don't understand how the score is
> >> calculated? Or the output when adding &debug=true
> >> is inconsistent or what?
> >>
> >> Best,
> >> Erick
> >>
> >> On Fri, Nov 6, 2015 at 11:04 AM, Brian Narsi <bn...@gmail.com>
> wrote:
> >>
> >>> I have a situation where.
> >>>
> >>> User search query
> >>>
> >>> q=15%
> >>>
> >>> Solr results contain several documents that are
> >>>
> >>> 15%
> >>> 15%
> >>> 15%
> >>> 15%
> >>> 15 (why?)
> >>> 15%
> >>> 15%
> >>>
> >>> I have debugged the query and can see that the score for 15 is higher
> >>> than
> >>> the ones below it.
> >>>
> >>> Why is that? Where can I read in detail about how the scoring is being
> >>> done?
> >>>
> >>> Thanks
> >>>
> >>
> > --
> > Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> > Solr & Elasticsearch Support * http://sematext.com/
> >
> >
>
>
> --
> --------------------------
>
> Benedetti Alessandro
> Visiting card : http://about.me/alessandro_benedetti
>
> "Tyger, tyger burning bright
> In the forests of the night,
> What immortal hand or eye
> Could frame thy fearful symmetry?"
>
> William Blake - Songs of Experience -1794 England
>

Re: Solr results relevancy / scoring

Posted by Alessandro Benedetti <ab...@apache.org>.
 I quote Emir and I would like to ask if the Norms are ignored or not.
If they are not ignored and 15 is one of the search tokens, I can expect an
high score for a doc containing "15" because the Norm value will be quite
high ( as the field contains basically exactly the query term).

Cheers

On 9 November 2015 at 10:01, Emir Arnautovic <em...@sematext.com>
wrote:

> To get answer for why 15, you can use field analysis for index/query and
> see that "15%" is probably tokenized and as both 15 and 15%.
>
> Emir
>
>
> On 06.11.2015 20:22, Erick Erickson wrote:
>
>> I'm not sure what the question your asking is. You say
>> that you have debugged the query and the score for 15 is
>> higher than the ones below it. What's surprising about that?
>>
>> Are you saying you don't understand how the score is
>> calculated? Or the output when adding &debug=true
>> is inconsistent or what?
>>
>> Best,
>> Erick
>>
>> On Fri, Nov 6, 2015 at 11:04 AM, Brian Narsi <bn...@gmail.com> wrote:
>>
>>> I have a situation where.
>>>
>>> User search query
>>>
>>> q=15%
>>>
>>> Solr results contain several documents that are
>>>
>>> 15%
>>> 15%
>>> 15%
>>> 15%
>>> 15 (why?)
>>> 15%
>>> 15%
>>>
>>> I have debugged the query and can see that the score for 15 is higher
>>> than
>>> the ones below it.
>>>
>>> Why is that? Where can I read in detail about how the scoring is being
>>> done?
>>>
>>> Thanks
>>>
>>
> --
> Monitoring * Alerting * Anomaly Detection * Centralized Log Management
> Solr & Elasticsearch Support * http://sematext.com/
>
>


-- 
--------------------------

Benedetti Alessandro
Visiting card : http://about.me/alessandro_benedetti

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

Re: Solr results relevancy / scoring

Posted by Emir Arnautovic <em...@sematext.com>.
To get answer for why 15, you can use field analysis for index/query and 
see that "15%" is probably tokenized and as both 15 and 15%.

Emir

On 06.11.2015 20:22, Erick Erickson wrote:
> I'm not sure what the question your asking is. You say
> that you have debugged the query and the score for 15 is
> higher than the ones below it. What's surprising about that?
>
> Are you saying you don't understand how the score is
> calculated? Or the output when adding &debug=true
> is inconsistent or what?
>
> Best,
> Erick
>
> On Fri, Nov 6, 2015 at 11:04 AM, Brian Narsi <bn...@gmail.com> wrote:
>> I have a situation where.
>>
>> User search query
>>
>> q=15%
>>
>> Solr results contain several documents that are
>>
>> 15%
>> 15%
>> 15%
>> 15%
>> 15 (why?)
>> 15%
>> 15%
>>
>> I have debugged the query and can see that the score for 15 is higher than
>> the ones below it.
>>
>> Why is that? Where can I read in detail about how the scoring is being done?
>>
>> Thanks

-- 
Monitoring * Alerting * Anomaly Detection * Centralized Log Management
Solr & Elasticsearch Support * http://sematext.com/


Re: Solr results relevancy / scoring

Posted by Erick Erickson <er...@gmail.com>.
I'm not sure what the question your asking is. You say
that you have debugged the query and the score for 15 is
higher than the ones below it. What's surprising about that?

Are you saying you don't understand how the score is
calculated? Or the output when adding &debug=true
is inconsistent or what?

Best,
Erick

On Fri, Nov 6, 2015 at 11:04 AM, Brian Narsi <bn...@gmail.com> wrote:
> I have a situation where.
>
> User search query
>
> q=15%
>
> Solr results contain several documents that are
>
> 15%
> 15%
> 15%
> 15%
> 15 (why?)
> 15%
> 15%
>
> I have debugged the query and can see that the score for 15 is higher than
> the ones below it.
>
> Why is that? Where can I read in detail about how the scoring is being done?
>
> Thanks