From 852959cf2bb304d9bcb115588df8565b335c8130 Mon Sep 17 00:00:00 2001 From: KYPREO <58344533+KYPREO@users.noreply.github.com> Date: Wed, 12 Feb 2020 16:42:53 +1100 Subject: [PATCH] [ticket/16234] Fix & enhance Sphinx search backend functionality PHPBB3-16234 PHPBB3-16233 PHPBB3-15367 PHPBB3-13958 --- phpBB/phpbb/search/fulltext_sphinx.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/phpBB/phpbb/search/fulltext_sphinx.php b/phpBB/phpbb/search/fulltext_sphinx.php index dc784ef0e1..d37f26856c 100644 --- a/phpBB/phpbb/search/fulltext_sphinx.php +++ b/phpBB/phpbb/search/fulltext_sphinx.php @@ -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); }