Fulltext Search
Posted: Sat Mar 27, 2004 10:05 pm
I was working on making my own customized theme today, and I noticed this code in the default theme's layout.php:
I understand that the default MySQL fulltext word size is 4 or more characters, but this is adjustable in MySQL 4.x. Shouldn't this code instead compare to the value of the MySQL variable 'ft_min_word_len'? Or possibly have a constant defined somewhere, not just a hardcoded 3.
Not a big deal, just trying to help improve s9y.
Code: Select all
if ( strlen($serendipity['GET']['searchTerm']) <= 3 ) {
echo SEARCH_TOO_SHORT;
break;
}
Not a big deal, just trying to help improve s9y.