@ Uwe_B
the code in version 5.2.1 fails to exclude searches with 2 or less characters
the problem is in the file /sources/search.php
specifically the variable $words is not redefined if count($filtered_words) = 0
to resolve change
- Code: Select all
if (count($filtered_words) > 0) {
$words = $filtered_words;
}
to
- Code: Select all
if (count($filtered_words) > 0) {
$words = $filtered_words;
$TMPL['query'] = implode(' ',$words);
}
else {
$this->error("Search requires 3 or more characters. Please try again.");
}
in the code above i added the line
- Code: Select all
$TMPL['query'] = implode(' ',$words);
so that the excluded search input would not be shown in the search results