Merge remote-tracking branch 'origin/2'

This commit is contained in:
Damian Mooyman 2017-12-07 16:31:59 +13:00
commit 2e2868c237
No known key found for this signature in database
GPG Key ID: 78B823A10DE27D1A

View File

@ -362,6 +362,9 @@ class PostgreSQLDatabase extends Database
*/ */
public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $sortBy = "ts_rank DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false) public function searchEngine($classesToSearch, $keywords, $start, $pageLength, $sortBy = "ts_rank DESC", $extraFilter = "", $booleanSearch = false, $alternativeFileFilter = "", $invertedMatch = false)
{ {
$start = (int)$start;
$pageLength = (int)$pageLength;
//Fix the keywords to be ts_query compatitble: //Fix the keywords to be ts_query compatitble:
//Spaces must have pipes //Spaces must have pipes
//@TODO: properly handle boolean operators here. //@TODO: properly handle boolean operators here.