mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[feature/postgresql-fulltext-search] supports_phrase_search function
function to return the value of the the private property phrase_search PHPBB3-9730
This commit is contained in:
@@ -27,10 +27,10 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
||||
private $tsearch_usable = false;
|
||||
private $version;
|
||||
private $tsearch_query;
|
||||
private $phrase_search = false;
|
||||
public $search_query;
|
||||
public $common_words = array();
|
||||
public $word_length = array();
|
||||
public $phrase_search = false;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
@@ -70,6 +70,18 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base
|
||||
return 'PostgreSQL Fulltext';
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if phrase search is supported or not
|
||||
*
|
||||
* @return bool
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
public function supports_phrase_search()
|
||||
{
|
||||
return $this->phrase_search;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks for correct PostgreSQL version and stores min/max word length in the config
|
||||
*
|
||||
|
Reference in New Issue
Block a user