According to Adam Lewenberg:
> The sort by title option seems not to be working with htsearch. Sort by
> time, reverse time, score, and reverse score work.
>
> I am using 3.2.0b3 on a linux redhat machine. You can go see it at
> http://www.library.uiuc.edu/sitesearchg.asp
You're absolutely right. I guess you were the first to test it! Shame
on whoever rewrote the sorting code for not testing this. There's an
argument type mismatch between the two different setTitle() methods in
two related classes, which prevents a proper override. As a result of
this, the titles never got set properly in the ResultMatch objects.
This patch seems to fix the problem for me, but it doesn't use the
argument type originally intended. Maybe someone who understands C++
better than I do can fix it to use String& correctly. When I tried,
it hung or dumped core.
--- ResultMatch.h.orig Thu Oct 19 22:40:59 2000
+++ ResultMatch.h Thu Mar 29 16:55:56 2001
@@ -56,7 +56,7 @@ public:
virtual char *getTitle();
virtual time_t getTime();
- virtual void setTitle(const String& title);
+ virtual void setTitle(char * title);
virtual void setTime(time_t t);
// This is likely to help weak compilers as well as the eye.
--- ResultMatch.cc.orig Thu Oct 19 22:40:59 2000
+++ ResultMatch.cc Thu Mar 29 16:55:13 2001
@@ -46,7 +46,7 @@ char *ResultMatch::getTitle()
time_t ResultMatch::getTime()
{ return 0; }
-void ResultMatch::setTitle(const String&)
+void ResultMatch::setTitle(char *t)
{ }
void ResultMatch::setTime(time_t)
--
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
_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html