1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-09-01 04:22:11 +02:00

[ticket/16935] Refactor sphinx to use new clases and remove unused parts

PHPBB3-16935
This commit is contained in:
Marc Alexander
2021-12-11 22:54:22 +01:00
parent d4b119893b
commit 9c15561a6b
6 changed files with 90 additions and 357 deletions

View File

@@ -57,8 +57,8 @@ class fulltext_sphinx implements search_backend_interface
protected $indexes;
/**
* Sphinx searchd client object
* @var SphinxClient
* Sphinx search client object
* @var \SphinxClient
*/
protected $sphinx;
@@ -857,7 +857,7 @@ class fulltext_sphinx implements search_backend_interface
/* Now that we're sure everything was entered correctly,
generate a config for the index. We use a config value
fulltext_sphinx_id for this, as it should be unique. */
$config_object = new \phpbb\search\sphinx\config($this->config_file_data);
$config_object = new \phpbb\search\backend\sphinx\config();
$config_data = array(
'source source_phpbb_' . $this->id . '_main' => array(
array('type', $this->dbtype . ' # mysql or pgsql'),