mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
[ticket/16234] Fix & enhance Sphinx search backend functionality
PHPBB3-16234 PHPBB3-16233 PHPBB3-15367 PHPBB3-13958
This commit is contained in:
parent
22417e3d9c
commit
852959cf2b
1 changed files with 2 additions and 3 deletions
|
@ -450,9 +450,8 @@ class fulltext_sphinx
|
|||
else
|
||||
{
|
||||
$match = ['\\', '(',')', '|', '!', '@', '~', '/', '^', '$', '=', '&', '<', '>'];
|
||||
$replace = [' ', ' ', ' ', ' ',' ',' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '];
|
||||
|
||||
$keywords = str_replace($match, $replace, $keywords);
|
||||
$keywords = str_replace($match, ' ', $keywords);
|
||||
$this->sphinx->SetMatchMode(SPH_MATCH_ANY);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue