CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Public Member Functions | |
successApproximation (FallbackRunnerContext $context) | |
Approximation of the success of this fallback method this evaluation must be fast and not access remote resources. | |
rewrite (FallbackRunnerContext $context) | |
Rewrite the results. | |
Static Public Member Functions | |
static | build (SearchQuery $query, array $params, InterwikiResolver $interwikiResolver) |
|
static |
SearchQuery | $query | |
array | $params | |
InterwikiResolver | $interwikiResolver |
Implemented in CirrusSearch\Fallbacks\LangDetectFallbackMethod.
CirrusSearch\Fallbacks\FallbackMethod::rewrite | ( | FallbackRunnerContext | $context | ) |
Rewrite the results.
A costly call is allowed here. Result sets must not be changed directly, rather a FallbackStatus that applies the desired change must be returned.
FallbackRunnerContext | $context |
Implemented in CirrusSearch\Fallbacks\IndexLookupFallbackMethod, CirrusSearch\Fallbacks\LangDetectFallbackMethod, and CirrusSearch\Fallbacks\PhraseSuggestFallbackMethod.
CirrusSearch\Fallbacks\FallbackMethod::successApproximation | ( | FallbackRunnerContext | $context | ) |
Approximation of the success of this fallback method this evaluation must be fast and not access remote resources.
The score is interpreted as :
The order of application (call to the rewrite method) is the order of these scores. If the score of multiple methods is equals the initialization order is kept.
FallbackRunnerContext | $context |
Implemented in CirrusSearch\Fallbacks\IndexLookupFallbackMethod, CirrusSearch\Fallbacks\LangDetectFallbackMethod, and CirrusSearch\Fallbacks\PhraseSuggestFallbackMethod.