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

Public Member Functions

 getMetrics ()
 
 getSearchRequest (Client $client)
 
 __construct (SearchQuery $query, $index, $queryTemplate, $suggestionField, array $queryParams, array $metricFields, array $profileParams)
 
 successApproximation (FallbackRunnerContext $context)
 
 rewrite (FallbackRunnerContext $context)
 Rewrite the results, A costly call is allowed here, if nothing is to be done $previousSet must be returned.
 

Static Public Member Functions

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

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Fallbacks\IndexLookupFallbackMethod::__construct ( SearchQuery $query,
$index,
$queryTemplate,
$suggestionField,
array $queryParams,
array $metricFields,
array $profileParams )
Parameters
SearchQuery$query
string$index
array$queryTemplate
string$suggestionField
string[]$queryParams
string[]$metricFieldsAdditional stored fields to request and report with metrics.
array$profileParams

Member Function Documentation

◆ build()

static CirrusSearch\Fallbacks\IndexLookupFallbackMethod::build ( SearchQuery $query,
array $params,
InterwikiResolver $interwikiResolver = null )
static
Parameters
SearchQuery$query
array$params
InterwikiResolver | null$interwikiResolver
Returns
FallbackMethod|null the method instance or null if unavailable

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ getMetrics()

CirrusSearch\Fallbacks\IndexLookupFallbackMethod::getMetrics ( )

◆ getSearchRequest()

CirrusSearch\Fallbacks\IndexLookupFallbackMethod::getSearchRequest ( Client $client)
Parameters
Client$client
Returns
Search|null null if no additional request is to be executed for this method.
See also
FallbackRunnerContext::getMethodResponse()

Implements CirrusSearch\Fallbacks\ElasticSearchRequestFallbackMethod.

◆ rewrite()

CirrusSearch\Fallbacks\IndexLookupFallbackMethod::rewrite ( FallbackRunnerContext $context)

Rewrite the results, A costly call is allowed here, if nothing is to be done $previousSet must be returned.

Parameters
FallbackRunnerContext$context
Returns
FallbackStatus

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ successApproximation()

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

Implements CirrusSearch\Fallbacks\FallbackMethod.


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