
From jesse@crytonII.st.hhs.nl Fri Apr  3 23:39:11 1998
Date: Fri, 03 Apr 1998 15:54:31 +0200
From: Jesse op den Brouw <jesse@crytonII.st.hhs.nl>
To: Dan Fuller <DFuller@mc.edu>
Cc: htdig@sdsu.edu
Subject: Re: htdig: Limiting /~ pages in searches: needs a patch??

Hi Dan,

I search the htdig mailing lists
(http://wormhole.eosys.com/mail-archives/htdig/), typed in "exclude"
and the first match on the list has a patch... 

Well, here is the patch (some older users can recognize this one...):

Hope it helps...


=============================CUT=HERE==========================================
*** htsearch/Display.cc.orig    Fri Feb  7 03:25:17 1997
--- htsearch/Display.cc Tue Jul  1 15:27:27 1997
***************
*** 133,139 ****
      }
      else
      {
!       if (excludeFrom && excludeFrom->FindFirst(url) < 0)
            return 0;
        else
            return 1;
--- 133,141 ----
      }
      else
      {
!       if (excludeFrom && 
!           excludeFrom->hasPattern() &&
!           excludeFrom->FindFirst(url) >= 0)
            return 0;
        else
            return 1;

==============================CUT=HERE==========================================









Dan Fuller wrote:
> 
> Greetings all,
> I've been on the list for a few months now in preparation for the day that I
> would install htdig on our campus server...well, that day has finally come!
> The compile and installation went very smoothly, as did my first dig of the
> database (though it took a few hours on this "doggy" machine!). All appears to
> be working well, except that I can't figure out how to exclude student
> webpages (ie. those beginning with /~). These directories are all on another
> machine mounted in /home, but it appears that htdig needs a way to limit via
> the url's rather than absolute unix paths. My hidden val's in the search form
> are reproduced below:
> 
> <input type=hidden name=config value=htdig>
> <input type=hidden name=restrict value="">
> <input type=hidden name=exclude value="http://www.mc.edu/~">
> 
> I've tried excluding values of "/~", "/~*", "*/~*", as well as with trailing
> hashs..ie "/~#", etc. When I do this, it excludes my entire database from the
> searches (ignoring the tilde I suppose).  Any ideas?
> 
> I noticed in the archives that Jesse in the Netherlands (hello jesse!) also
> had this question back in May (though I didn't see an answer posted)...I've
> cc'd him in the hopes he may have found a solution since then.
> 
> Many thanks!
> -dan
> 
> Dan J. Fuller,  Assistant Webmaster
> Mississippi College, Clinton MS  USA  601.925.3493
> http://www.mc.edu  dfuller@mc.edu  fax: 925-3955

--jesse
---------------------------------------------------------------------
J. op den Brouw                            Johanna Westerdijkplein 75
Haagse Hogeschool                                   2521 EN  DEN HAAG
Faculty of Engineering                                    Netherlands
Electrical Engineering                                 +31 70 4458936
-------------------- J.E.J.opdenBrouw@st.hhs.nl ---------------------

Linux - because reboots are for hardware changes
----------------------------------------------------------------------
To unsubscribe from the htdig mailing list, send a message to
htdig-request@sdsu.edu containing the single word "unsubscribe" in
the body of the message.
