00066: $SearchExcludePatterns no longer works

Summary: $SearchExcludePatterns no longer works
Created: 2004-10-03 14:17
Status: Closed - fixed for 2.0.devel14
Category: Bug
From: PRZ
Priority: 3
Version: 2.0 Devel 11

Description: The patterns defined to exclude some group from a search no longer works in version 2

$SearchExcludePatterns no longer exists. The new variable is $SearchPatterns, it is an array of patterns to be matched or excluded when performing a search or page listing. Patterns delimited by exclamation points specify pages to be excluded, while all other patterns must be matched in order for a page to appear in a list.

To globally exclude the group "MyGroup" from a search, use

  $SearchPatterns[] = '!^MyGroup\\.!';

To exclude any page ending in "RecentChanges" from a search, use

   $SearchPatterns[] = '!RecentChanges$!';

This information probably needs to be entered as a Cookbook recipe somewhere.


Yes, but that don't work...

Ummm, what part "doesn't work"? --Pm

Sorry for the lack of details, but both options, tested independantly, drive to have a 'no result' search, whatever the search. The pagelist is also empty. PRZ

I found the bug, it's fixed for 2.0.devel14. The syntax has also changed, see Cookbook.SearchResults. --Pm