According to Terry Luedtke:
> I've been fiddling with the different _factor settings and ran into
> a problem.  Internet Explorer bogged down on a result set and hung.
> When I went back and ran the same query with htsearch -v, there were
> dozens of star image tags on each result.  It seems to be worse with
> backlink_factor set to zero.  I added a few print lines to Display.cc
> and got the following in generateStars:
> 
> if(debug) cerr << "generateStars: doc, min, max " << ref->DocScore() << minScore << 
>maxScore <<endl;
> if(debug) cerr << "generateStars: nStars " << nStars << " of " << maxStars <<endl;
> 
> generateStars: doc, min, max -1 0.000219684 0.134886
> generateStars: nStars -20 of 4
> generateStars: doc, min, max -1 0.000219684 0.134886
> generateStars: nStars -20 of 4
> 
> 
> As you can see, ref-DocScore() is returning a negative score so in this
> case there are 25 stars.  I also printed the buildMatchList() section
> that sets min and max scores.  No negative scores were displayed.

I'm assuming this is 3.2.0b2 you're testing?

generateStars() should probably have a test like this, to prevent
excess star_blank images:

        if (score < 0)
            score = 0;

However, the root of the problem seems to be in buildMatchList().  It
sets the score for the current match to 1.0 + log(score), but calculates
minScore and maxScore based solely on the value of score.  It should
take the log of these, either before or after the min/max calculation,
shouldn't it?

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 


Reply via email to