CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Representation of the result of running a FallbackMethod. More...
Public Member Functions | |
apply (CirrusSearchResultSet $currentSet) | |
getAction () | |
Static Public Member Functions | |
static | suggestQuery (string $query, $snippet=null) |
static | replaceLocalResults (CirrusSearchResultSet $rewrittenResults, string $query, $snippet=null) |
static | addInterwikiResults (CirrusSearchResultSet $results, string $wikiId) |
static | noSuggestion () |
Public Attributes | |
const | NO_ACTION = 'noSuggestion' |
const | ACTION_SUGGEST_QUERY = 'suggestQuery' |
const | ACTION_REPLACE_LOCAL_RESULTS = 'replaceLocalResults' |
const | ACTION_ADD_INTERWIKI_RESULTS = 'addInterwikiResults' |
Representation of the result of running a FallbackMethod.
Describes the change that the method has decided to apply to the search result set. This primarily allows wrapping the changes into atomic units of execution so the execution trace can be logged.
|
static |
CirrusSearchResultSet | $results | Interwiki results to add to current result set |
string | $wikiId | The wiki these results come from |
CirrusSearch\Fallbacks\FallbackStatus::getAction | ( | ) |
|
static |
CirrusSearchResultSet | $rewrittenResults | New result set to replace existing results with |
string | $query | The search query performed in the new result set. |
HtmlArmor | string | null | $snippet | A highlighted snippet showing the changes in $query. |
|
static |
string | $query | |
HtmlArmor | string | null | $snippet |