duh, sorry. that patch is for swish.cgi.
if you want to do the same kind of thing in search.cgi, you could do it in the
search.tt (template toolkit) file (like Bill said just now...).
I did it with this:
<b>[% item.Property('swishrank') / 10 %]%</b>
and it works.
Peter Karman scribbled on 8/26/05 8:00 AM:
>
> Dominique Arpin scribbled on 8/26/05 7:37 AM:
>
>
>>>>I will like to change the scale factor of 0 to 1000 by 0,0% to 100,0%
>
>
>>I use search.cgi
>>
>
>
>
> @@ -1895,14 +1894,14 @@
> $props->{swishdocpath_href} = $link_href; # backwards compatible
> $props->{link_property} = $link_href; # backwards compatible
>
> + $props->{swishrank} =~ s,(\d)$,\.$1\%,; # show rank as percentage
> +}
> -
> -}
>
>
>
>
--
Peter Karman . http://peknet.com/ . peter(at)not-real.peknet.com
Received on Fri Aug 26 06:13:40 2005