CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Base class for SearchResult. More...
Public Member Functions | |
__construct (Title $title) | |
isBrokenTitle () | |
Check if this is result points to an invalid title. | |
isMissingRevision () | |
Check if target page is missing, happens when index is out of date. | |
getTitle () | |
getFile () | |
Get the file for this page, if one exists. | |
getDocId () | |
getScore () | |
getExplanation () | |
Protected Member Functions | |
initFromTitle ( $title) | |
Initialize from a Title and if possible initializes a corresponding File. | |
initText () | |
Lazy initialization of article text from DB. | |
containsHighlight (string $text) | |
clearRedirectTitle () | |
Clear any redirect match so it won't be part of the result. | |
Base class for SearchResult.
CirrusSearch\Search\CirrusSearchResult::__construct | ( | Title | $title | ) |
Title | $title |
|
abstractprotected |
Clear any redirect match so it won't be part of the result.
Reimplemented in CirrusSearch\Search\ArrayCirrusSearchResult, and CirrusSearch\Search\Result.
|
protected |
string | $text | A snippet from the search highlighter |
|
abstract |
Reimplemented in CirrusSearch\Search\ArrayCirrusSearchResult, and CirrusSearch\Search\Result.
|
abstract |
Reimplemented in CirrusSearch\Search\ArrayCirrusSearchResult, and CirrusSearch\Search\Result.
|
final |
Get the file for this page, if one exists.
|
abstract |
Reimplemented in CirrusSearch\Search\ArrayCirrusSearchResult, and CirrusSearch\Search\Result.
|
final |
|
finalprotected |
Initialize from a Title and if possible initializes a corresponding File.
Title | $title |
|
finalprotected |
Lazy initialization of article text from DB.
|
final |
Check if this is result points to an invalid title.
|
final |
Check if target page is missing, happens when index is out of date.