fixed: WebGUI Search errors - boolean search using filtering does not work

This commit is contained in:
Yung Han Khoe 2008-08-07 15:20:30 +00:00
parent 6f1067ff9c
commit ab1c20fa8f
2 changed files with 2 additions and 1 deletions

View file

@ -369,7 +369,7 @@ sub search {
for (my $i = 0; $i < scalar(@terms); $i++) {
#-------------- Edited by zxp for Chinese Word Segment
utf8::decode($terms[$i]);
my @segs = split /([A-z|\d]+|\S)/, $terms[$i];
my @segs = split /([A-z,+-|\d]+|\S)/, $terms[$i];
$terms[$i] = join " ",@segs;
$terms[$i] =~ s/\s{2,}/ /g;
$terms[$i] =~ s/(^\s|\s$)//g;