Date: Sun, 22 Oct 2000 17:26:20 -0500 From: Geoff Hutchison To: htdig3-dev Subject: [htdig3-dev] Fwd: htdig patch (ranking) >Delivered-To: ghutchis@wso.williams.edu >From: Daniel Naber >Date: Sun, 22 Oct 2000 23:20:30 +0200 >Subject: htdig patch (ranking) > >Hi, > >this is a simple patch against htdig 3.1.5. I call it "multi boost" patch >because it increases the score if more than one word is matched when >matching "any words". We're using this on bugs.kde.org, it's better than >using AND because that often returns no results. > >Perhaps you want to put this on the patches section on the htdig homepage >(if such a section exists). > >Regards > Daniel ------------------------------------ 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. --- parser.cc.org Sun Oct 22 18:04:33 2000 +++ parser.cc Sun Oct 22 18:22:58 2000 @@ -378,6 +378,8 @@ // Duplicate document. We just need to add the scores together // dm2->score += dm->score; + // dnaber: boost matches that contain more than one word (dnaber, 2000-10-22): + dm2->score = dm2->score * 1000; if (dm->anchor < dm2->anchor) dm2->anchor = dm->anchor; }