Re: htdig: Exclude not working with htsearch

J. op den Brouw (
Mon, 28 Sep 1998 13:19:11 +0200 (MET DST)

On Sat, 26 Sep 1998, Michael Tibor wrote:

> I'm having a problem setting up a page to search all documents on my
> webserver except the list archives.
> Here's how I'm setting the exclude parameter:
> <input type=hidden name=exclude value="archive">
> Unfortunately, searching with that page yields output which includes
> my list archives (urls like /<listname>-archive/).
> Am I not using the exclude parameter correctly?

Yes, you are using this parameter correctly, but there is
a "bug" in the htsearch/ file around line 194

The line

            excludeFrom->FindFirst(url) < 0)

must be

            excludeFrom->FindFirst(url) >= 0)

Recompile & install htsearch and then it should work.
(BTW this problem is also in 3.0.8b2 clean version)

J. op den Brouw Johanna Westerdijkplein 75
Haagse Hogeschool 2521 EN DEN HAAG
Sector Techniek Netherlands
Afdeling Elektrotechniek +31 70 4458936
-------------------------- ---------------------------

htdig survey:

To unsubscribe from the htdig mailing list, send a message to containing the single word "unsubscribe" in
the body of the message.

This archive was generated by hypermail 2.0b3 on Sat Jan 02 1999 - 16:27:52 PST