According to Richard Seymour:
> If I have some documents at http://www.mysite.com/site/infrastructure/
> and I want them excluded from the search results, I can control this
> with the exclude varable. So I can put this in the search form:
>
> <input type="hidden" name="exclude" value="*/infrastructure/*">
>
> ...and it should exclude the pages from the search result, right?
>
> Trouble is, it doesn't work for me. Am I using the wrong syntax or
> something?
Yes, you can't use wildcards with restrict and exclude. It does simple
substring matching. If you remove the stars it should work.
> I also tried this form:
>
> <input type="hidden" name="exclude"
> value="http:/www.mysite.com/site/infrastructure/*">
That's better (again without the star) if you only want to exclude that
particular directory rather than any /infrastructure/ directory.
> Also, if I have three directories I want excluded, say:
>
> http://www.mysite.com/site/larry/
> http://www.mysite.com/site/curly/
> http://www.mysite.com/site/moe/
>
> and the rest of them, I want included, can I exclude multiple
> directories with the exclude parameter?
<input type="hidden" name="exclude"
value="http://www.mysite.com/site/larry/|http://www.mysite.com/site/curly/|http://www.mysite.com/site/moe/">
or you can have multiple definitions of the exclude parameter, with a
separate value for each, and htsearch will combine them into a vertical
bar separated list. This allows you, for instance, to use checkboxes or
a select multiple list in your form.
> And can I do the opposite with restrict?
Yes. Same syntax.
--
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]>
Information: http://lists.sourceforge.net/lists/listinfo/htdig-general
FAQ: http://htdig.sourceforge.net/FAQ.html