Hi, I just thought I'd share this simple debugging patch I made for the
htsearch parser, to get to the bottom of a problem with missing entries.
It's just for debugging.  If you don't normally use htsearch with the -v
option, you don't need it.

--- ./htsearch/parser.cc.notrace        Thu Feb 24 20:29:11 2000
+++ ./htsearch/parser.cc        Thu Feb 22 13:38:24 2001
@@ -10,6 +10,8 @@
 
 #include "parser.h"
 
+extern int     debug;
+
 #define        WORD    1000
 #define        DONE    1001
 
@@ -238,6 +240,8 @@
            dm->score = wr.weight * current->weight;
            dm->id = wr.id;
            dm->anchor = wr.anchor;
+           if (debug > 1)
+               cerr << "Got\t" << temp << "\ti:" << wr.id << "\tl:" << wr.location << 
+"\tw:" << wr.weight << "\tc:" << wr.count << "\ta:" << wr.anchor << endl;
            list->add(dm);
        }
     }
@@ -311,6 +315,8 @@
            if (dm2 && dm2->anchor < dm3->anchor)
                dm3->anchor = dm2->anchor;
            result->add(dm3);
+           if (debug > 1)
+               cerr << "Anded\ti:" << dm->id << "\tw:" << dm->score << "\ta:" << 
+dm->anchor << endl;
        }
     }
     elements->Release();

-- 
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

Reply via email to