[pmwiki-users] Filtering searches

Patrick R. Michaud pmichaud at pobox.com
Fri Jul 13 10:40:53 CDT 2007


On Fri, Jul 13, 2007 at 08:23:48AM -0700, Ian MacGregor wrote:
> I know I can keep the PmWiki group from appearing in search results with:
> 
> $SearchPatterns['normal'][] = '!^PmWiki\\.!';
> ...
> Is it something like:
> 
> $SearchPatterns['normal'][] = "!^$Group.HomePage!";

  $SearchPatterns['normal'][] = '!\\.HomePage$!';

I think, but I'm not certain, that one can also use wildcard
patterns (instead of regexes) in $SearchPattern.  So
perhaps the following works also:

  $SearchPatterns['normal'][] = '-*.HomePage';

Pm



More information about the pmwiki-users mailing list