[Mediawiki-l] Enable Wildcard Search
a. cremer
albert.cremer at online.de
Wed May 16 17:34:54 UTC 2007
Hi there
I think I found the solution to the problem.
Do the following change to the file SearchEnginge.php in /includes
Change Line 148 from
public static function legalSearchChars() {
to
function legalSearchChars() {
I have no idea whether this will impact other functionalities but at least
the the wildcard search will work ;-)
Regards
Albert Cremer
"aretai aretai" <aretaiuc at gmail.com> schrieb
im Newsbeitrag
news:5783abc70705140223q5550089m60662569b5a9da6a at mail.gmail.com...
> Hi,
>
> I tried to install this extension and failed as well. Have also tried to
> contact it's author Assel Pathirana, no answer so far. Maybe try Lucene
> Search instead.
>
> Aretai
>
>
> On 5/12/07, a. cremer
> <albert.cremer at online.de> wrote:
>>
>> Hi,
>>
>> I like to enable wildcard search and try to utilize the wildcard search
>> extension
>>
>> <?PHP
>> #Copyright (C) 2006 Assela Pathirana under the version 2 of the GNU
>> General
>> Public License
>> #Adds wildcard search functionality to mediawiki
>> # file : SearchMySQLwildcards.php
>> require_once( 'SearchEngine.php' );require_once(
>> 'SearchMySQL.php' );require_once( 'SearchMySQL4.php' );//Register this
>> search type and override the default search set in
>> DefaultSettins.php$wgSearchType = SearchMySQLwildcards;//Create a new
>> search class based on the parentclass SearchMySQLwildcards extends
>> SearchMySQL4 { function legalSearchChars() {
>> //include + and * as valid characters return
>> "A-Za-z_'0-9\\x80-\\xFF\\-+*"; }}$strictMatching=false;?>having
>> require_once("extensions/WCS/SearchMySQLwildcards.php"); in the
>> localsettings.phpUnfortunately it will not work. Instead of the required
>> search results there is only a blank page.Does anyone have a comment on
>> this?Kind regardsAlbert Cremer
>>
>>
>>
>>
>> _______________________________________________
>> MediaWiki-l mailing list
>> MediaWiki-l at lists.wikimedia.org
>> http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>>
More information about the MediaWiki-l
mailing list