From 364720a93d49469af18987ab3919505d0e97ca30 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 13 May 2002 13:27:12 +0000 Subject: [PATCH] Minor reduction in search indexing to three letters ... git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@2576 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_search.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpBB/includes/functions_search.php b/phpBB/includes/functions_search.php index ab58a7f414..49cf01126f 100644 --- a/phpBB/includes/functions_search.php +++ b/phpBB/includes/functions_search.php @@ -57,8 +57,8 @@ function clean_words($mode, &$entry, &$stopword_list, &$synonym_list) { $entry = str_replace('*', ' ', $entry); - // 'words' that consist of <=3 or >=20 characters are removed. - $entry = preg_replace('/\b([a-z0-9]{1,3}|[a-z0-9]{21,})\b/',' ', $entry); + // 'words' that consist of <3 or >20 characters are removed. + $entry = preg_replace('/\b([a-z0-9]{1,2}|[a-z0-9]{21,})\b/',' ', $entry); } if ( !empty($stopword_list) )