From hp@bitrange.com Fri Jan 7 22:49:56 2000 Date: Fri, 7 Jan 2000 05:48:08 -0500 (EST) From: Hans-Peter Nilsson To: htdig3-dev@htdig.org Subject: [htdig3-dev] url_seed_score patch for htdig-3.1.4 Please note that I'll update and check in this patch to the main trunk as soon as the merges from 3.2.0 are finished. If it is requested, I could check it into the htdig-3-1-x branch too. Not for 3.2.0. I send it here as a heads-up, for the benefit of peer review, and for bleeding-edge patch archives (hey, I *did* test it). For prospective users: If you want to just order your search results in areas, you may want to wait for a patch to implement an attribute "results_order". Thu Jan 6 10:20:15 2000 Hans-Peter Nilsson * htdoc/attrs.html (url_seed_score): New. * htdoc/cf_byname.html: Added url_seed_score. * htdoc/cf_byprog.html: Ditto. * htcommon/defaults.cc (defaults): Add default for url_seed_score. * htlib/HtURLSeedScore.cc, HtURLSeedScore.h: New. * htsearch/Display.h (class Display: Add member minScore. Change maxScore type to double. * htsearch/Display.cc: Include math.h and HtURLSeedScore.h (Display constructor): Initialize minScore, change init value for maxScore to -DBL_MAX. (displayMatch): Use minScore in calculation of score to adjust for negative scores. (buildMatchList): Use an URLSeedScore to adjust the score after other calculations. Calculate minScore. Correct maxScore adjustment for change to double. (sort): Calculation of maxScore moved to buildMatchList. (Patch sent as an attachment) brgds, H-P [Part 2, "" Text/PLAIN 423 lines] [Unable to print this part] [ Part 3: "Attached Text" ] ------------------------------------ To unsubscribe from the htdig3-dev mailing list, send a message to htdig3-dev-unsubscribe@htdig.org You will receive a message to confirm this.