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: Max score of two fields
Date Sat, 12 Nov 2005 09:05:45 GMT

On 11 Nov 2005, at 20:32, Yonik Seeley wrote:

> It doesn't seem like a custom Similarity would work.  Always returning
> 1.0 for coord would still rank a doc higher if both current_name and
> old_name matched.

Oops - you're right.  I was merely considering the coordination  
factor as the issue, neglecting the additive nature of the clauses.   
My bad.

     Erik


>
> -Yonik
> Now hiring -- http://forms.cnet.com/slink?231706
>
> On 11/11/05, Erik Hatcher <erik@ehatchersolutions.com> wrote:
>
>> I believe if you create a custom Similarity implementation (subclass
>> DefaultSimilarity) and override coord() and return 1.0f from it you
>> will achieve what you're after.
>>
>
> ---------------------------------------------------------------------
> 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


Mime
View raw message