mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +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
|
@ -449,10 +449,9 @@ class fulltext_sphinx
|
|||
}
|
||||
else
|
||||
{
|
||||
$match = ['\\', '(',')','|','!','@','~', '/', '^', '$', '=','&', '<', '>'];
|
||||
$replace = [' ', ' ', ' ', ' ',' ',' ',' ', ' ', ' ', ' ', ' ', ' ', ' ', ' '];
|
||||
$match = ['\\', '(',')', '|', '!', '@', '~', '/', '^', '$', '=', '&', '<', '>'];
|
||||
|
||||
$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