CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Fallbacks\FallbackRunner Class Reference
+ Inheritance diagram for CirrusSearch\Fallbacks\FallbackRunner:
+ Collaboration diagram for CirrusSearch\Fallbacks\FallbackRunner:

Public Member Functions

 __construct (array $fallbackMethods)
 
 run (SearcherFactory $factory, CirrusSearchResultSet $initialResult, MSearchResponses $responses, NamespacePrefixParser $namespacePrefixParser, CirrusSearchHookRunner $cirrusSearchHookRunner)
 
 getElasticSuggesters ()
 
 attachSearchRequests (MSearchRequests $requests, Client $client)
 
 getMetrics ()
 

Static Public Member Functions

static noopRunner ()
 Noop fallback runner.
 
static create (SearchQuery $query, InterwikiResolver $interwikiResolver, $profileContext=SearchProfileService::CONTEXT_DEFAULT, $profileContextParam=[])
 

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Fallbacks\FallbackRunner::__construct ( array $fallbackMethods)
Parameters
FallbackMethod[]$fallbackMethodsList of fallbacks to apply in order, keyed by name of the fallback configuration.

Member Function Documentation

◆ create()

static CirrusSearch\Fallbacks\FallbackRunner::create ( SearchQuery $query,
InterwikiResolver $interwikiResolver,
$profileContext = SearchProfileService::CONTEXT_DEFAULT,
$profileContextParam = [] )
static
Parameters
SearchQuery$query
InterwikiResolver$interwikiResolver
string$profileContext
array$profileContextParam
Returns
FallbackRunner

◆ getElasticSuggesters()

CirrusSearch\Fallbacks\FallbackRunner::getElasticSuggesters ( )
Returns
array

◆ getMetrics()

CirrusSearch\Fallbacks\FallbackRunner::getMetrics ( )

◆ noopRunner()

static CirrusSearch\Fallbacks\FallbackRunner::noopRunner ( )
static

Noop fallback runner.

Returns
FallbackRunner

◆ run()

CirrusSearch\Fallbacks\FallbackRunner::run ( SearcherFactory $factory,
CirrusSearchResultSet $initialResult,
MSearchResponses $responses,
NamespacePrefixParser $namespacePrefixParser,
CirrusSearchHookRunner $cirrusSearchHookRunner )
Parameters
SearcherFactory$factory
CirrusSearchResultSet$initialResult
MSearchResponses$responses
NamespacePrefixParser$namespacePrefixParser
CirrusSearchHookRunner$cirrusSearchHookRunner
Returns
CirrusSearchResultSet

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