Ah God, I am stupid ... thanks for that, Doug! I must have a bad
coding day today : )

Fredrik

On 7/28/05, Doug Cutting <[EMAIL PROTECTED]> wrote:
> Fredrik Andersson wrote:
> > I just ported a lot of old 0.6 code to 0.7-dev/mapred. Lots of stuff
> > has changed I see! One thing I can't quite grasp though, is why the
> > Hit.getScore() has been removed in favour for the TopDocs-thingie
> > instead?
> 
> Hit.getScore() was generalized to Hit.getSortValue() in order to support
> sorting results by things other than score.  If you sort by score, as is
> the default, then ((FloatWritable)Hit.getSortValue()).get() is the
> score.  But if you sort by, e.g., a date string, then
> ((UTF8)Hit.getSortValue()).toString() is the date string sorted on, and
> the score is unavailable.  Perhaps the score should be made available
> regardless?
> 
> Doug
>


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nutch-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-developers

Reply via email to