CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Context storing the states of the FallbackRunner. More...
Public Member Functions | |
getInitialResultSet () | |
The initial resultset as returned by the main search query. | |
getPreviousResultSet () | |
The resultset as rewritten by the previous fallback method. | |
getMethodResponse () | |
Retrieve the response of the query attached to the main search request using ElasticSearchRequestFallbackMethod::getSearchRequest(). | |
costlyCallAllowed () | |
Whether or not a costly call is still allowed. | |
makeSearcher (SearchQuery $rewrittenQuery) | |
Prepare a Searcher able to search for $rewrittenQuery. | |
getNamespacePrefixParser () | |
hasMethodResponse () | |
Whether or not this fallback method has an ElasticSearch response available. | |
getCirrusSearchHookRunner () | |
Context storing the states of the FallbackRunner.
This object is populated/maintained by the FallbackRunner itself and read by the FallbackMethod.
CirrusSearch\Fallbacks\FallbackRunnerContext::costlyCallAllowed | ( | ) |
Whether or not a costly call is still allowed.
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::getCirrusSearchHookRunner | ( | ) |
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::getInitialResultSet | ( | ) |
The initial resultset as returned by the main search query.
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::getMethodResponse | ( | ) |
Retrieve the response of the query attached to the main search request using ElasticSearchRequestFallbackMethod::getSearchRequest().
NOTE: This method must not be called if no requests was attached.
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::getNamespacePrefixParser | ( | ) |
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::getPreviousResultSet | ( | ) |
The resultset as rewritten by the previous fallback method.
It may be equal to getInitialResultSet() if this is accessed by the first fallback method or if it was not rewritten yet. Technically this method returns the value of the previous FallbackMethod::rewrite()
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::hasMethodResponse | ( | ) |
Whether or not this fallback method has an ElasticSearch response available.
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.
CirrusSearch\Fallbacks\FallbackRunnerContext::makeSearcher | ( | SearchQuery | $rewrittenQuery | ) |
Prepare a Searcher able to search for $rewrittenQuery.
Calling this method. NOTE: a costly call must still be allowed before creating a new Searcher.
\CirrusSearch\Search\SearchQuery | $rewrittenQuery |
Implemented in CirrusSearch\Fallbacks\FallbackRunnerContextImpl.