lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@lucene.com>
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.

Doug



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


Mime
View raw message