From hp@bitrange.com Sun Jan 30 05:54:29 2000 Date: Sun, 30 Jan 2000 08:43:26 -0500 (EST) From: Hans-Peter Nilsson To: htdig3-dev@htdig.org Subject: [htdig3-dev] search_results_order patch for htdig-3.1.4 Hi. Here's the order-search-results-in-areas patch I described on Jan 6, as a patch to htdig-3.1.4 with my previous url_seed_score patch applied (sent on Jan 7). I changed the attribute name to search_results_order, since I thought it is better than just the proposed results_order. In due time, when 3.2 is merged back onto the main trunk, I'll commit an equivalent to this patch there, possibly with other changes for better structure in creating the search results list. I am not suggesting this should go into 3.2.0. If it is requested, I can put it on the htdig-3-1-x branch, but I know nothing new should generally be put there. Speaking of the previous url_seed_score patch, I think I'll put the files HtURLSeedScore.{h,cc} in htsearch rather than htlib when I eventually commit that. It dawned on me that the URLSeedScore class really isn't general, it just happened to use no search-specific classes. Sun Jan 30 12:29:13 2000 Hans-Peter Nilsson * htdoc/attrs.html (search_results_order): New. * htdoc/cf_byname.html: Added search_results_order. * htdoc/cf_byprog.html: Ditto. * htcommon/defaults.cc (defaults): Add default for search_results_order. * htlib/List.h (List): New method AppendList. * htlib/List.cc (List::AppendList): Implement it. * htsearch/SplitMatches.h, htsearch/SplitMatches.cc: New. * htsearch/Display.cc: Include SplitMatches.h (buildMatchList): Use a SplitMatches to hold search results and interate over its parts when sorting scores. Ignore Count() of matches when setting minScore and maxScore. (Patch sent as an attachment) brgds, H-P [Part 2, "" Text/PLAIN 391 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.