MediaWiki  REL1_19
SearchResultSet Class Reference
Inheritance diagram for SearchResultSet:

List of all members.

Public Member Functions

 free ()
 Frees the result set, if applicable.
 getInfo ()
 Return information about how and from where the results were fetched, should be useful for diagnostics and debugging.
 getInterwikiResults ()
 Return a result set of hits on other (multiple) wikis associated with this one.
 getSuggestionQuery ()
 getSuggestionSnippet ()
 getTotalHits ()
 Some search modes return a total hit count for the query in the entire article database.
 hasInterwikiResults ()
 Check if there are results on other wikis.
 hasResults ()
 Return true if results are included in this result set.
 hasSuggestion ()
 Some search modes return a suggested alternate term if there are no exact hits.
 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.

Detailed Description

Definition at line 507 of file SearchEngine.php.


Member Function Documentation

Frees the result set, if applicable.

Reimplemented in SqlSearchResultSet.

Definition at line 612 of file SearchEngine.php.

Return information about how and from where the results were fetched, should be useful for diagnostics and debugging.

Returns:
String

Definition at line 577 of file SearchEngine.php.

Return a result set of hits on other (multiple) wikis associated with this one.

Returns:
SearchResultSet

Definition at line 586 of file SearchEngine.php.

Referenced by hasInterwikiResults().

Here is the caller graph for this function:

Returns:
String: suggested query, null if none

Definition at line 560 of file SearchEngine.php.

Returns:
String: HTML highlighted suggested query, '' if none

Definition at line 567 of file SearchEngine.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.

Returns:
Integer

Reimplemented in MySQLSearchResultSet, and SqliteSearchResultSet.

Definition at line 543 of file SearchEngine.php.

Check if there are results on other wikis.

Returns:
Boolean

Definition at line 595 of file SearchEngine.php.

References getInterwikiResults().

Here is the call graph for this function:

Return true if results are included in this result set.

STUB

Returns:
Boolean

Definition at line 529 of file SearchEngine.php.

Referenced by SearchNearMatchResultSet\numRows().

Here is the caller graph for this function:

Some search modes return a suggested alternate term if there are no exact hits.

Returns true if there is one on this set.

Returns:
Boolean

Definition at line 553 of file SearchEngine.php.

Fetches next search result, or false.

STUB

Returns:
SearchResult

Reimplemented in SearchNearMatchResultSet, SqlSearchResultSet, MssqlSearchResultSet, and PostgresSearchResultSet.

Definition at line 605 of file SearchEngine.php.

Fetch an array of regular expression fragments for matching the search terms as parsed by this engine in a text extract.

STUB

Returns:
Array

Reimplemented in SqlSearchResultSet, and MssqlSearchResultSet.

Definition at line 515 of file SearchEngine.php.


The documentation for this class was generated from the following file: