[ticket/16234] Fix & enhance Sphinx search backend functionality

PHPBB3-16234
PHPBB3-16233
PHPBB3-15367
PHPBB3-13958
This commit is contained in:
KYPREO 2020-02-12 16:42:53 +11:00
parent 22417e3d9c
commit 852959cf2b

View file

@ -449,10 +449,9 @@ class fulltext_sphinx
} }
else else
{ {
$match = ['\\', '(',')','|','!','@','~', '/', '^', '$', '=','&', '<', '>']; $match = ['\\', '(',')', '|', '!', '@', '~', '/', '^', '$', '=', '&', '<', '>'];
$replace = [' ', ' ', ' ', ' ',' ',' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '];
$keywords = str_replace($match, $replace, $keywords); $keywords = str_replace($match, ' ', $keywords);
$this->sphinx->SetMatchMode(SPH_MATCH_ANY); $this->sphinx->SetMatchMode(SPH_MATCH_ANY);
} }