[pmwiki-users] SearchExtensions
John Rankin
john.rankin at affinity.co.nz
Thu Jul 28 17:10:51 CDT 2005
On Thursday, 28 July 2005 8:53 PM, K.A.Bouton <k.a.bouton at reading.ac.uk> wrote:
>I really appreciate your effort in this. We both get to learn
>something.
>
>OK - downloaded new searchterms.php with changes in it (Thanks
>Patrick)
>
>Cool - Almost there.
>1) Searches seem to work but highlighting doesn't.
I suspect this is because it's looking for 'Group/text' and not
finding it. This was why my suggested change was to remove the leading
text, rather than just escape the / character. This is just a guess.
See below.
>2) When search is conducted and results page comes up, sidebar searchbox
>disappears leaving only 'searching wiki'
This is a design feature, which perhaps should be a design option...
Come up with something, I'll see if I can :)
>3) The search excludes don't seem to work so Sidebar which should be
>excluded somes up in the searches
>I have this in my farmconfig.php (also tried with no luck in
>local/config.php)
> $SearchPatterns['default'][] = '!\\.SideBar$!';
Hm. I tried this with both \\. and \. and it works for me:
$SearchPatterns['normal'][] = '!\\.SideBar$!';
>
>> If so, try changing
>>
>> $words[$w]++; to $words[preg_replace('/^.*?\\//','',$w)]++;
>>
>> in the foreach(preg_split(... statement of that script.
>>
--
JR
--
John Rankin
More information about the pmwiki-users
mailing list