lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject Re: Similarity byteToFloat() and and floatToByte()
Date Mon, 30 Jun 2003 17:34:22 GMT
David_Birtwell@VWR.COM wrote:
> I would like to remove our mod to Lucene by taking advantage of the scorer
> API and writing our own Similarity class that has a method to transform an
> int rank to a float boost.  Unfortunately, byteToFloat() is private, so my
> Similarity class cannot make use of it.

Try Similarity.decodeNorm().  It's public and faster too.  byteToFloat 
is just the uncached, internal version of this.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message