MediaWiki
REL1_24
|
This class is used for different SQL-based search engines shipped with MediaWiki. More...
Public Member Functions | |
__construct ($resultSet, $terms, $total=null) | |
free () | |
Frees the result set, if applicable. | |
getTotalHits () | |
Some search modes return a total hit count for the query in the entire article database. | |
next () | |
Fetches next search result, or false. | |
numRows () | |
termMatches () | |
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract. | |
Protected Attributes | |
$resultSet | |
$terms | |
$totalHits |
This class is used for different SQL-based search engines shipped with MediaWiki.
Definition at line 131 of file SearchResultSet.php.
SqlSearchResultSet::__construct | ( | $ | resultSet, |
$ | terms, | ||
$ | total = null |
||
) |
Definition at line 136 of file SearchResultSet.php.
References $resultSet, $terms, $total, and terms.
Frees the result set, if applicable.
Reimplemented from SearchResultSet.
Definition at line 169 of file SearchResultSet.php.
Some search modes return a total hit count for the query in the entire article database.
This may include pages in namespaces that would not be matched on the given settings.
Return null if no total hits number is supported.
Reimplemented from SearchResultSet.
Definition at line 177 of file SearchResultSet.php.
References numRows().
Fetches next search result, or false.
STUB
Reimplemented from SearchResultSet.
Definition at line 154 of file SearchResultSet.php.
References Title\makeTitle(), and SearchResult\newFromTitle().
Reimplemented from SearchResultSet.
Definition at line 146 of file SearchResultSet.php.
Referenced by getTotalHits().
Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract.
STUB
Reimplemented from SearchResultSet.
Definition at line 142 of file SearchResultSet.php.
References terms.
SqlSearchResultSet::$resultSet [protected] |
Definition at line 132 of file SearchResultSet.php.
Referenced by __construct().
SqlSearchResultSet::$terms [protected] |
Definition at line 133 of file SearchResultSet.php.
Referenced by __construct().
SqlSearchResultSet::$totalHits [protected] |
Definition at line 134 of file SearchResultSet.php.