Dichotomy search modification for phpBB3 Chinese Forum
for a friend
[color=#FF0000] that appears as follows when using the search function of the forum, the following words you enter will be overlooked as too common: xxx
you must specify at least one keyword and each key The word must be 2 to 14 characters (including wildcards). [/color]
#######################################################
> phpBB3 Chinese dichotomy search
> > >
> > > > > > > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > > > > IOsetting
> > > > > > > >
> > > > > > > > > > > IOsetting
> > > > > > > > >
> > > > > > > > > > > IOsetting
> > > > > > > > >
> > > > > > > > > > IOsetting
> > > > > > >
> phpBB3. The Chinese dichotomy is divided into the 'Chinese dichotomy' in the default participle. The dichotomy is divided into ''
##
> > > >).
> the use of this segmentation method will cause the index library to increase two to three times more than the original lexicon, and to the size of the MySQL space. Please consider the
##
> Build 20080709
##
> > > > > > > > Minutes
> >
>
#######################################################
#######################################################
. ] $exact_words = array ();
preg_match_all (.#91; ^\\s \ \ \ --.#93; $|.#91; \\s \ \ --.#93; $keywords); The search code
[code] $pos = 0;
$len = strlen ($text); [/code]
add
[code] $single_utf8 = true. After adding
[code] $single_utf8 = true; [/code]
4, search code
[code]$ret. = '. $utf_char.'; [/code]
[color=#FF0000]. If ($single_utf8) {
$ret. = '. $utf_char.';
}
continue;
} else {
$ret. = '. Uot; \xF0.quot;.#93;
$utf_char = substr ($text, $pos, $utf_len);
if. > > ($utf_char.Gt; = UTF8_CJK_B_FIRST.Amp;.Amp; $utf_char.Lt; = UTF8_CJK_B_LAST))
{
$ret. = $utf_char. '; $ret. = '. $utf_char.';
}
}
$single_utf8 = false; [/code]
[color=#0000FF] pay attention to, modify, upload file, after overlay, login background, maintain -.gt; search index -.gt; delete index, then create cable [/color]