You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by sp...@gmx.eu on 2009/03/04 12:42:49 UTC

relevance vs. score

Hi,

When I say: sorted by relevance or sorted by score -

are relevance and score synonym for each other or what is the difference in
relation to sorting?

Thank you




---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: relevance vs. score

Posted by sp...@gmx.eu.
> It's the similarity scoring formula.  EG see here:
> 
>    http://lucene.apache.org/java/2_4_0/scoring.html
> 
> and here:
> 
>    
> http://lucene.apache.org/java/2_4_0/api/core/org/apache/lucene
> /search/Similarity.html

OK; thank you


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: relevance vs. score

Posted by Michael McCandless <lu...@mikemccandless.com>.
It's the similarity scoring formula.  EG see here:

   http://lucene.apache.org/java/2_4_0/scoring.html

and here:

   http://lucene.apache.org/java/2_4_0/api/core/org/apache/lucene/search/Similarity.html

Mike

<sp...@gmx.eu> wrote:

>> I think for "ordinary" Lucene queries, "score" and "relevance" mean
>> the same thing.
>>
>> But if you do eg function queries, or you "mixin" recency into your
>> scoring, etc., then "score" could be anything you computed, a value
>> from a field, etc.
>
> Hm, how is relevance then defined?
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


RE: relevance vs. score

Posted by sp...@gmx.eu.
> I think for "ordinary" Lucene queries, "score" and "relevance" mean  
> the same thing.
> 
> But if you do eg function queries, or you "mixin" recency into your  
> scoring, etc., then "score" could be anything you computed, a value  
> from a field, etc.

Hm, how is relevance then defined?


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: relevance vs. score

Posted by Michael McCandless <lu...@mikemccandless.com>.
I think for "ordinary" Lucene queries, "score" and "relevance" mean  
the same thing.

But if you do eg function queries, or you "mixin" recency into your  
scoring, etc., then "score" could be anything you computed, a value  
from a field, etc.

Mike

<sp...@gmx.eu> wrote:

> Hi,
>
> When I say: sorted by relevance or sorted by score -
>
> are relevance and score synonym for each other or what is the  
> difference in
> relation to sorting?
>
> Thank you
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org