Geoff Hutchison writes:
 > 
 > Right now it ignores them. Personally, I think the search program 
 > should *not* be allowed to alter the databases in any way. This is 
 > why it opens them with Read().

 Well, if you run test/t_htsearch without the htmerge pass, the search returns
results for documents that are 'not found'. It should ignore them but 
does not. I may be missing something here.

 I replaced 

. t_htdig

  by

. test_functions
$htdig "$@" -t -i -c $testdir/conf/htdig.conf

  in t_htsearch and run

cd test ; make TESTS=t_htsearch check

  and got

make MAKE="make" check-TESTS
make[1]: Entering directory `/home/loic/local/ports/htdig3/test'
../htsearch/htsearch -c /home/loic/local/ports/htdig3/test/conf/htdig.conf 
'method=or&words=also+distribution' > /tmp/t_htsearch10022: Implicit or search for 
'also distribution'
FAIL: t_htsearch
===================
1 of 1 tests failed
===================
make[1]: *** [check-TESTS] Error 1
make[1]: Leaving directory `/home/loic/local/ports/htdig3/test'
make: *** [check-am] Error 2
[loic@burp test]$ 

     And /tmp/t_htsearch10022 contains (search software.htm, a dead link).

Content-type: text/html

<html><head><title>Search results for 'also distribution'</title></head>
<body bgcolor="#eef7ff">
<h2><img src="@IMAGEDIR@/htdig.gif">
Search results for 'also or distribution'</h2>
<hr noshade size=4>
<form method="get" action="">
<font size=-1>
<input type=hidden name=config value=>
<input type=hidden name=restrict value="">
<input type=hidden name=exclude value="">
Match: <select name=method>
<option value=and>All
<option value=or selected>Any
<option value=boolean>Boolean
</select>

Format: <select name=format>
<option value="builtin-long">Long
<option value="builtin-short">Short
</select>

Sort by: <select name=sort>
<option value=score selected>Score
<option value=time>Time
<option value=title>Title
<option value=revscore>Reverse Score
<option value=revtime>Reverse Time
<option value=revtitle>Reverse Title
</select>

<br>
Refine search:
<input type="text" size="30" name="words" value="also distribution">
<input type="submit" value="Search">
</select>
</font>
</form>
<hr noshade size=1>
<b>Documents 1 - 5 of 5 matches.
More <img src="@IMAGEDIR@/star.gif" alt="*">'s indicate a better match.
</b>
<hr noshade size=1>
<dl><dt><strong><a 
href="http://localhost:7400/set1/software.htm">[software.htm]</a></strong><img 
src="/htdig/star.gif" alt="*"><img src="/htdig/star.gif" alt="*"><img 
src="/htdig/star.gif" alt="*"><img src="/htdig/star.gif" alt="*">
</dt><dd><br>
<i><a 
href="http://localhost:7400/set1/software.htm">http://localhost:7400/set1/software.htm</a></i>
 <font size=-1>, 0 bytes</font>
</dd></dl>
<dl><dt><strong><a href="http://localhost:7400/set1/site2.html">Hong Kong Kung Fu 
Movies</a></strong><img src="/htdig/star.gif" alt="*"><img src="/htdig/star_blank.gif" 
alt=" "><img src="/htdig/star_blank.gif" alt=" "><img src="/htdig/star_blank.gif" 
alt=" ">
</dt><dd>  <br>
<i><a 
href="http://localhost:7400/set1/site2.html">http://localhost:7400/set1/site2.html</a></i>
 <font size=-1>, 1366 bytes</font>
</dd></dl>
<dl><dt><strong><a href="http://localhost:7400/set1/site1.html">Kenfil Distribution 
(FE) Ltd.</a></strong><img src="/htdig/star.gif" alt="*"><img 
src="/htdig/star_blank.gif" alt=" "><img src="/htdig/star_blank.gif" alt=" "><img 
src="/htdig/star_blank.gif" alt=" ">
</dt><dd><b><tt>... </tt></b> &nbsp; Kenfil received &quot;Best Solution 
Provider&quot; Award from Microsoft.... &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 
&nbsp; &nbsp; [Software 
<strong>Distribution</strong>][Training&amp;Consultation][Technical Service] [Contact 
Information] You are visitor since Oct 18, 1996 Best Viewed With URL: 
http://www.kenfil<b><tt> ...</tt></b><br>
<i><a 
href="http://localhost:7400/set1/site1.html">http://localhost:7400/set1/site1.html</a></i>
 <font size=-1>, 10106 bytes</font>
</dd></dl>
<dl><dt><strong><a href="http://localhost:7400/set1/script.html">Intelligent Network 
Solutions - Service Node</a></strong><img src="/htdig/star.gif" alt="*"><img 
src="/htdig/star_blank.gif" alt=" "><img src="/htdig/star_blank.gif" alt=" "><img 
src="/htdig/star_blank.gif" alt=" ">
</dt><dd><b><tt>... </tt></b> serve many network switches. This reduces the 
implementation cost, both in terms of service node hardware and in transmission costs. 
Loop routes are <strong><a 
href="http://localhost:7400/set1/script.html#top">also</a></strong> utilised by the 
Signalling Interface Processor , where they are explained more fully. Reliable 
performance All the functions of the Open SN are duplicated<b><tt> ...</tt></b><br>
<i><a 
href="http://localhost:7400/set1/script.html">http://localhost:7400/set1/script.html</a></i>
 <font size=-1>, 10576 bytes</font>
</dd></dl>
<dl><dt><strong><a href="http://localhost:7400/set1/site4.html">FinAid | Loans | 
Private Loan Lenders (Graduate)</a></strong><img src="/htdig/star.gif" alt="*"><img 
src="/htdig/star_blank.gif" alt=" "><img src="/htdig/star_blank.gif" alt=" "><img 
src="/htdig/star_blank.gif" alt=" ">
</dt><dd><b><tt>... </tt></b>-800-282-1550 weekdays 9-8 ET. Use the new online loan 
application or place an order for a paper application using the materials order form. 
You can <strong>also</strong> fax 1-302-477-4080, write to the Access Group, 1411 
Foulk Road, Box 7430, Wilmington, DE 19803-0430, or send email to 
[EMAIL PROTECTED] College<b><tt> ...</tt></b><br>
<i><a 
href="http://localhost:7400/set1/site4.html">http://localhost:7400/set1/site4.html</a></i>
 <font size=-1>, 39444 bytes</font>
</dd></dl>

  
<hr noshade size=4>
<a href="http://www.htdig.org">
<img src="@IMAGEDIR@/htdig.gif" border=0>ht://Dig 3.2.0-dev</a>
</body></html>

     Cheers,

-- 
                Loic Dachary

                ECILA
                100 av. du Gal Leclerc
                93500 Pantin - France
                Tel: 33 1 56 96 09 80, Fax: 33 1 56 96 09 61
                e-mail: [EMAIL PROTECTED] URL: http://www.senga.org/
���������������������������N�����r��y���^��b��z���X��X����֦z���h��b��z��ؠ���r��j)�azȧ�W�����{.n�+����{ay%$@���azg���

Reply via email to