lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: retrieving raw scores
Date Tue, 19 Jul 2005 17:16:37 GMT
Use HitCollector's collect method:

http://lucene.apache.org/java/docs/api/org/apache/lucene/search/HitCollector.html#collect(int,%20float)

Otis


--- yahootintin.11533894@bloglines.com wrote:

> hi,
> 
> i need to retrieve the raw scores (3.6, 2.8, etc) for a hit and not
> the normalized score (1.0, 0.8, etc).  commenting out the normalizing
> code
> in Hits.java does what i want.  is there a better way to do this?
> 
> i'm wondering
> about adding a method to Similarity.java that looks like this:
>   boolean
> normalizeRawScores() {
>     return true;
>   }
> 
> is there a better way to
> do this?
> 
> thanks.
> 
> ---------------------------------------------------------------------
> 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