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

Public Member Functions

 __construct (SearchQuery $query, array $detectors, InterwikiResolver $interwikiResolver)
 Do not use this constructor outside of tests!
 
 successApproximation (FallbackRunnerContext $context)
 
 rewrite (FallbackRunnerContext $context)
 
 getMetrics ()
 

Static Public Member Functions

static build (SearchQuery $query, array $params, InterwikiResolver $interwikiResolver)
 

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Fallbacks\LangDetectFallbackMethod::__construct ( SearchQuery $query,
array $detectors,
InterwikiResolver $interwikiResolver )

Do not use this constructor outside of tests!

Parameters
SearchQuery$query
Detector[]$detectors
InterwikiResolver$interwikiResolver

Member Function Documentation

◆ build()

static CirrusSearch\Fallbacks\LangDetectFallbackMethod::build ( SearchQuery $query,
array $params,
InterwikiResolver $interwikiResolver )
static
Parameters
SearchQuery$query
array$params
InterwikiResolver$interwikiResolver
Returns
FallbackMethod|null

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ getMetrics()

CirrusSearch\Fallbacks\LangDetectFallbackMethod::getMetrics ( )

◆ rewrite()

CirrusSearch\Fallbacks\LangDetectFallbackMethod::rewrite ( FallbackRunnerContext $context)
Parameters
FallbackRunnerContext$context
Returns
FallbackStatus

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ successApproximation()

CirrusSearch\Fallbacks\LangDetectFallbackMethod::successApproximation ( FallbackRunnerContext $context)
Parameters
FallbackRunnerContext$context
Returns
float

Implements CirrusSearch\Fallbacks\FallbackMethod.


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