I'm getting returns on words like "the". What's happening?! Yikes, yikes, yikes.
I have this in search.cgi:
# Word is too common, don't try and sort it, can cause problems.
if (($numhits > 50) and (($grand_total * 0.75) < $numhits)) {
return "Search term is too common.";
}
But I just got 4727 returns (25 pages) when I searched on "the". Why am I not getting "Search term is too common."?
I've searched the forum, and everyone else seems to have the opposite problem--they get "Search term is too common." when they don't want to.
I was looking at search.cgi, and it seems that the above "Search term is too common." bit conflicts with this bit:
# 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'};
}
Why would you need 100 pages of search results if you're limiting search words to 50 returns? What am I missing here?
Anyway, that's what I'm getting. On the form on my search.cgi page, if a user selects maxhits = 10, I get 10 pages of returns when I search on "the." AND (gulp), I get 100 pages of returns if maxhits = 100.
Someone, please, help.
Kathy
I have this in search.cgi:
# Word is too common, don't try and sort it, can cause problems.
if (($numhits > 50) and (($grand_total * 0.75) < $numhits)) {
return "Search term is too common.";
}
But I just got 4727 returns (25 pages) when I searched on "the". Why am I not getting "Search term is too common."?
I've searched the forum, and everyone else seems to have the opposite problem--they get "Search term is too common." when they don't want to.
I was looking at search.cgi, and it seems that the above "Search term is too common." bit conflicts with this bit:
# 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'};
}
Why would you need 100 pages of search results if you're limiting search words to 50 returns? What am I missing here?
Anyway, that's what I'm getting. On the form on my search.cgi page, if a user selects maxhits = 10, I get 10 pages of returns when I search on "the." AND (gulp), I get 100 pages of returns if maxhits = 100.
Someone, please, help.
Kathy