mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
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
This commit is contained in:
parent
20748ac9d5
commit
364720a93d
1 changed files with 2 additions and 2 deletions
|
@ -57,8 +57,8 @@ function clean_words($mode, &$entry, &$stopword_list, &$synonym_list)
|
||||||
{
|
{
|
||||||
$entry = str_replace('*', ' ', $entry);
|
$entry = str_replace('*', ' ', $entry);
|
||||||
|
|
||||||
// 'words' that consist of <=3 or >=20 characters are removed.
|
// '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);
|
$entry = preg_replace('/\b([a-z0-9]{1,2}|[a-z0-9]{21,})\b/',' ', $entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !empty($stopword_list) )
|
if ( !empty($stopword_list) )
|
||||||
|
|
Loading…
Add table
Reference in a new issue