Gossamer Forum
Home : Products : Links 2.0 : Customization :

Problem in search results

Quote Reply
Problem in search results
Hi for all,

In links.def

# Maximum number of hits returned in a search. Can be overridden in the search
# options.
$db_max_hits = 10;

but the search results is not limited at 10 links

"Your search returned 0 categories and 17 Links."

How I can correct it ?


carlosca
Quote Reply
Re: [carlosca] Problem in search results In reply to
the variable that ultimately decides the max hits is in search.cgi:
Code:
# Set maximum hits -- default to 25.
local $maxhits = 25;
if ($in{'mh'} && (($in{'mh'} == 10) || ($in{'mh'} == 25) || ($in{'mh'} == 50) || ($in{'mh'} = 100))) {
$maxhits = $in{'mh'};
}

basicly, if the mh paramater in the search querystring is not 10, 25, 50, or 100, or undefined, than the max hits defaults to 25.

Philip
------------------
Limecat is not pleased.
Quote Reply
Re: [fuzzy logic] Problem in search results In reply to
Thank you Philip
carlosca