From aa0e26c033ac267ccb2db67b89fbc0282a85b7c0 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sat, 11 Dec 2004 09:55:02 +0000 Subject: [PATCH] allow ranked search results: added SearchEngine:queryRanking() --- includes/SearchEngine.php | 11 +++++++++++ 1 file changed, 11 insertions(+) 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(); } -- 2.20.1