Dichotomy search modification for phpBB3 Chinese Forum

time:10-02-25 forum:PHPBB forum program, plug-in collection and modification
  Reprinted from http://www.phpbbchina.com/forum/viewtopic.php? F=23.amp; t=3338

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]

prev:Ji'nan Railway Bureau opens Heze Qingdao... next:The first comprehensive renovation of th...
post comment
Notice



approved   Before buying a house, buying a hous...   "Your advice really can't help me." ...   A rare picture of the old Ji'nan! Th...   The deep mountain women's back husba...   Sichuan Leshan 84 year old Lao Tai a...
rand   The current page red display in the ...   How to parse BBCODE and filter in po...   PHPBB3.X forum hash Hashige (like a ...   PHPBB3.X forum quick transfer button...   PHPBB3 forum post save button name i...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com