OK, I figured it out.
search.cgi appears to use the variable 'mh' to set the limit for the number categories
and links to return, by using it for the value of $maxhits in DBSQL.pm at
sub query What I've done is copied the 'mh' setting, and changed it for the category search results so its higher (500 hits), and changed it back again to the default setting for the links search results.
Make a backup of
search.cgi then find ...
Code:
# Get/Set the search options.
($in->param('mh') =~ /^(10|25|50|100)$/) ? ($mh = $1) : ($mh = 25);
($in->param('bool') =~ /^(and|or)$/i) ? ($bool = uc $1) : ($bool = 'AND');
($in->param('nh') =~ /^(\d+)$/) ? ($nh = $1) : ($nh = 1);
Copy and remove the first line ...
($in->param('mh') =~ /^(10|25|50|100)$/) ? ($mh = $1) : ($mh = 25); Now go a little further down and paste it here ...
Code:
# Now let's search the links table, but first figure out any filters.
($in->param('mh') =~ /^(10|25|50|100)$/) ? ($mh = $1) : ($mh = 25); $linkdb = new Links::DBSQL "$LINKS{admin_root_path}/defs/Links.def";
After that, update
# Search the category listings., to the following ...
Code:
# Search the category listings.
($in->param('mh') =~ /^(500)$/) ? ($mh = $1) : ($mh = 500); $catdb = new Links::DBSQL "$LINKS{admin_root_path}/defs/Category.def";
$cat_hits = $catdb->query ( { query => $query, mh => $mh, nh => $nh } );
That should do it. Obviously you can change the '500' limit to whatever you feel comfortable with.
Let me know how you get on.
All the best
Shaun