CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Fallbacks\FallbackRunnerContextImpl Class Reference

Basic implementation of a FallbackRunnerContext. More...

+ Inheritance diagram for CirrusSearch\Fallbacks\FallbackRunnerContextImpl:
+ Collaboration diagram for CirrusSearch\Fallbacks\FallbackRunnerContextImpl:

Public Member Functions

 __construct (CirrusSearchResultSet $initialResultSet, SearcherFactory $searcherFactory, NamespacePrefixParser $namespacePrefixParser, CirrusSearchHookRunner $cirrusSearchHookRunner)
 
 setPreviousResultSet (CirrusSearchResultSet $previousResultSet)
 Initialize the previous resultset (only visible by FallbackRunner)
 
 resetSuggestResponse ()
 
 setSuggestResponse (ElasticaResultSet $suggestResponse)
 
 hasMethodResponse ()
 @inheritDoc
 
 getInitialResultSet ()
 
 getPreviousResultSet ()
 
 getMethodResponse ()
 
 costlyCallAllowed ()
 
 makeSearcher (SearchQuery $rewrittenQuery)
 
 getNamespacePrefixParser ()
 
 getCirrusSearchHookRunner ()
 

Detailed Description

Basic implementation of a FallbackRunnerContext.

Should only be visible by FallbackRunner as its states should be closely maintained by the FallbackRunner.

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::__construct ( CirrusSearchResultSet $initialResultSet,
SearcherFactory $searcherFactory,
NamespacePrefixParser $namespacePrefixParser,
CirrusSearchHookRunner $cirrusSearchHookRunner )
Parameters
CirrusSearchResultSet$initialResultSet
SearcherFactory$searcherFactory
NamespacePrefixParser$namespacePrefixParser
CirrusSearchHookRunner$cirrusSearchHookRunner

Member Function Documentation

◆ costlyCallAllowed()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::costlyCallAllowed ( )

◆ getCirrusSearchHookRunner()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::getCirrusSearchHookRunner ( )
Returns
CirrusSearchHookRunner

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ getInitialResultSet()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::getInitialResultSet ( )
Returns
CirrusSearchResultSet

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ getMethodResponse()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::getMethodResponse ( )
Returns
ElasticaResultSet

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ getNamespacePrefixParser()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::getNamespacePrefixParser ( )
Returns
NamespacePrefixParser

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ getPreviousResultSet()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::getPreviousResultSet ( )
Returns
CirrusSearchResultSet

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ hasMethodResponse()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::hasMethodResponse ( )

◆ makeSearcher()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::makeSearcher ( SearchQuery $rewrittenQuery)
Parameters
\CirrusSearch\Search\SearchQuery$rewrittenQuery
Returns
Searcher

Implements CirrusSearch\Fallbacks\FallbackRunnerContext.

◆ setPreviousResultSet()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::setPreviousResultSet ( CirrusSearchResultSet $previousResultSet)

Initialize the previous resultset (only visible by FallbackRunner)

Parameters
CirrusSearchResultSet$previousResultSet

◆ setSuggestResponse()

CirrusSearch\Fallbacks\FallbackRunnerContextImpl::setSuggestResponse ( ElasticaResultSet $suggestResponse)
Parameters
ElasticaResultSet$suggestResponse

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