mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/11050] add access specifiers to sphinx search properties
PHPBB3-11050
This commit is contained in:
parent
db9351d0f6
commit
505a713349
1 changed files with 75 additions and 2 deletions
|
@ -28,22 +28,95 @@ define('SPHINX_CONNECT_WAIT_TIME', 300);
|
||||||
*/
|
*/
|
||||||
class phpbb_search_fulltext_sphinx
|
class phpbb_search_fulltext_sphinx
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Associative array holding index stats
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
protected $stats = array();
|
protected $stats = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds the words entered by user splitted in array
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
protected $split_words = array();
|
protected $split_words = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Holds unique sphinx id
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
protected $id;
|
protected $id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores the names of both main and delta sphinx indexes
|
||||||
|
* seperated by a semicolon
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
protected $indexes;
|
protected $indexes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sphinx searchd client class object
|
||||||
|
* @var SphinxClient
|
||||||
|
*/
|
||||||
protected $sphinx;
|
protected $sphinx;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string Relative path to board root
|
||||||
|
*/
|
||||||
protected $phpbb_root_path;
|
protected $phpbb_root_path;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var string PHP Extension
|
||||||
|
*/
|
||||||
protected $php_ext;
|
protected $php_ext;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var phpbb_auth Auth class object
|
||||||
|
*/
|
||||||
protected $auth;
|
protected $auth;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var phpbb_config Config class object
|
||||||
|
*/
|
||||||
protected $config;
|
protected $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var dbal DBAL class object
|
||||||
|
*/
|
||||||
protected $db;
|
protected $db;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var phpbb_db_tools Database Tools class object
|
||||||
|
*/
|
||||||
protected $db_tools;
|
protected $db_tools;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores the database type if supported by sphinx
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
protected $dbtype;
|
protected $dbtype;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var user User class object
|
||||||
|
*/
|
||||||
protected $user;
|
protected $user;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Stores the generated content of the sphinx config file
|
||||||
|
*/
|
||||||
protected $config_file_data = '';
|
protected $config_file_data = '';
|
||||||
protected $search_query;
|
|
||||||
protected $common_words = array();
|
/**
|
||||||
|
* Contains tidied search query
|
||||||
|
* @var string
|
||||||
|
*/
|
||||||
|
public $search_query;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Contains common words
|
||||||
|
* common words are words with length less/more than min/max length
|
||||||
|
* @var array
|
||||||
|
*/
|
||||||
|
public $common_words = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
|
|
Loading…
Add table
Reference in a new issue