lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: Max score of two fields
Date Sat, 12 Nov 2005 01:32:48 GMT
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.

-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


Mime
View raw message