Thanks for that info… I was able to get it working extending that idea some. The “category” variable in the exp:search:advanced_form tag is meaningless (in this regard) because it only defines which categories are displayed on the advanced form for the user to select from. Since I’m only displaying a keyword field they’re not needed. To limit the search to specific categories I used the following:
{exp:search:advanced_form result_page="search/results"}
<?php
foreach ($cat_id_array as $cat_id)
print "<input type='hidden' name='cat_id[]' value='" . $cat_id . "'>";
?>
<input type="text" name="keywords" id="keywords" value="" size="18" maxlength="100" />
<input type="submit" id="search-submit" value="Go!" />
{/exp:search:advanced_form}
..where the $cat_id_array is a manually maintained (they change rarely) global array that contains the categories I want to limit this search to:
global $IN;
$cat_id_array = explode(",", $IN->global_vars["cat_ids"]);
I set this in path.php so that the info can be easily accessed on various pages:
$global_vars = array(
"cat_ids" => "12,13,15,16,20"
);