[htdig3-dev] bug in sort code in htsearch


Gilles Detillieux (grdetil@scrc.umanitoba.ca)
Thu, 28 Jan 1999 17:42:25 -0600 (CST)


Geoff and I have been discussing a strange bit of behaviour in htsearch,
when you run the new version on an older DB. htsearch was dropping
results from the search results pages, and when sorting on something
other than score, it would sometime die altogether.

The missing results, as far as I can tell, are because the new DBs
don't map URLs to lower case, so the new htsearch can't find the
DocumentRef for URLs with upper case letters, when searching the
old DBs.

The missing DocumentRefs caused problems with title and date sorts,
which are addressed by this patch:

--- ./htsearch/Display.cc.sortbug Wed Jan 27 18:49:23 1999
+++ ./htsearch/Display.cc Thu Jan 28 17:40:35 1999
@@ -877,6 +877,7 @@
                 
         thisMatch = new ResultMatch();
         thisMatch->setURL(url);
+ thisMatch->setRef(NULL);
 
         //
         // Get the actual document record into the current ResultMatch

-- 
Gilles R. Detillieux              E-mail: <grdetil@scrc.umanitoba.ca>
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
htdig3-dev@htdig.org containing the single word "unsubscribe" in
the SUBJECT of the message.



This archive was generated by hypermail 2.0b3 on Thu Feb 04 1999 - 22:24:21 PST