From: Domas Mituzas Date: Sat, 11 Dec 2004 09:55:02 +0000 (+0000) Subject: allow ranked search results: added SearchEngine:queryRanking() X-Git-Tag: 1.5.0alpha1~1110 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=aa0e26c033ac267ccb2db67b89fbc0282a85b7c0;p=lhc%2Fweb%2Fwiklou.git allow ranked search results: added SearchEngine:queryRanking() --- diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index d4141b81d1..f16aba27c7 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -181,6 +181,16 @@ class SearchEngine { function queryLimit() { return $this->db->limitResult( $this->limit, $this->offset ); } + + /** + * Does not do anything for generic search engine + * subclasses may define this though + * @return string + * @access private + */ + function queryRanking($filteredTerm,$fulltext) { + return ""; + } /** * Construct the full SQL query to do the search. @@ -193,6 +203,7 @@ class SearchEngine { return $this->queryMain( $filteredTerm, $fulltext ) . ' ' . $this->queryRedirect() . ' ' . $this->queryNamespaces() . ' ' . + $this->queryRanking($filteredTerm, $fulltext) . ' ' . $this->queryLimit(); }