X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchResultSet.php;h=8d18b0e6ed598841fd843838691bafb53ef25dba;hb=59ebff658ce912c1b0e7ef8d8f9bfec5a4e17b39;hp=0a05eef1594eb0e343b82613bfe5edb0b7be1095;hpb=c24303d6b01352f8b43a2b8bbb844dad6bdf16d4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchResultSet.php b/includes/search/SearchResultSet.php index 0a05eef159..8d18b0e6ed 100644 --- a/includes/search/SearchResultSet.php +++ b/includes/search/SearchResultSet.php @@ -60,6 +60,33 @@ class SearchResultSet { return null; } + /** + * Some search modes will run an alternative query that it thinks gives + * a better result than the provided search. Returns true if this has + * occured. + * + * @return bool + */ + function hasRewrittenQuery() { + return false; + } + + /** + * @return string|null The search the query was internally rewritten to, + * or null when the result of the original query was returned. + */ + function getQueryAfterRewrite() { + return null; + } + + /** + * @return string|null Same as self::getQueryAfterRewrite(), but in HTML + * and with changes highlighted. Null when the query was not rewritten. + */ + function getQueryAfterRewriteSnippet() { + return null; + } + /** * Some search modes return a suggested alternate term if there are * no exact hits. Returns true if there is one on this set.