diff options
| author | Dhruv Goel <dhruv.goel92@gmail.com> | 2012-07-03 03:54:01 +0530 |
|---|---|---|
| committer | unknown <Dhruv@Dhruv-XPS.(none)> | 2012-07-08 01:38:53 +0530 |
| commit | 70a0caee28559bd1bd52b4ecf9d7d33acd732fe2 (patch) | |
| tree | fa195ebb12e96aeb050cb24d6942262092fe5604 /phpBB/includes/search | |
| parent | 7a2d36a25eead0a836b7c79ec675a417a2ff5ea6 (diff) | |
| download | forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.gz forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.bz2 forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.tar.xz forums-70a0caee28559bd1bd52b4ecf9d7d33acd732fe2.zip | |
[feature/postgresql-fulltext-search] supports_phrase_search function
function to return the value of the the private property phrase_search
PHPBB3-9730
Diffstat (limited to 'phpBB/includes/search')
| -rw-r--r-- | phpBB/includes/search/fulltext_postgres.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/phpBB/includes/search/fulltext_postgres.php b/phpBB/includes/search/fulltext_postgres.php index 79c8035438..84ce674564 100644 --- a/phpBB/includes/search/fulltext_postgres.php +++ b/phpBB/includes/search/fulltext_postgres.php @@ -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 @@ -71,6 +71,18 @@ class phpbb_search_fulltext_postgres extends phpbb_search_base } /** + * 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 * * @return string|bool Language key of the error/incompatiblity occured |
