On 10/09/2007 02:07 AM, Michelangelo Rezzonico wrote:
> Hi all,
>
>
>
> I use swish.cgi
>
>
>
> I need to change the wildcard from “*” to “%”
>
> How can I do this ?
>
You can't. At least, not directly. The '*' is hardcoded in the C source.
You can allow users to input '%' and filter it to '%' with a regexp in
swish.cgi however. (I presume to allow for consistency with SQL-style
wildcarding.).
Look at the 'request_fixup' configuration option in swish.cgi source (it
appears to be undocumented). Maybe something like (UNTESTED CODE):
request_fixup => sub {
my ($cgi, $config) = @_;
my $q = $cgi->param('q');
$q =~ s/\*/\%/g;
$cgi->param('q', $q);
}
--
Peter Karman . peter(at)not-real.peknet.com . http://peknet.com/
_______________________________________________
Users mailing list
Users@lists.swish-e.org
http://lists.swish-e.org/listinfo/users
Received on Mon Oct 22 11:20:48 2007