lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: Are similarity scores computed when using sort?
Date Sat, 27 Nov 2004 10:43:04 GMT
Yes, Similarity is still computed.  It has to be in order to determine 
if the documents considered are a hit or not.  Scores of 0 are not a 
hit.

You certainly could simplify the Similarity computations though, by 
creating your own implementation and returning 1 from all the methods.

	Erik

On Nov 27, 2004, at 2:46 AM, Aphinyanaphongs, Yindalon wrote:

> I have an search application that is very performance conscious.  I've 
> looked through the IndexSearcher code, and haven't been able to 
> clarify whether a similarity score is calculated if the results are 
> sorted by some numerical field value? Basically, it would be 
> preferable to not incur the computational cost of generating a 
> similarity score if it is never used.
>
> Thanks
> Yin
>


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


Mime
View raw message