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

Fallback method based on the elastic phrase suggester. More...

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

Public Member Functions

 successApproximation (FallbackRunnerContext $context)
 
 rewrite (FallbackRunnerContext $context)
 
 haveSuggestion (CirrusSearchResultSet $resultSet)
 
 getSuggestQueries ()
 

Static Public Member Functions

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

Detailed Description

Fallback method based on the elastic phrase suggester.

Member Function Documentation

◆ build()

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

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ getSuggestQueries()

CirrusSearch\Fallbacks\PhraseSuggestFallbackMethod::getSuggestQueries ( )

◆ haveSuggestion()

CirrusSearch\Fallbacks\PhraseSuggestFallbackMethod::haveSuggestion ( CirrusSearchResultSet $resultSet)
Parameters
CirrusSearchResultSet$resultSet
Returns
bool

◆ rewrite()

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

Implements CirrusSearch\Fallbacks\FallbackMethod.

◆ successApproximation()

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

Implements CirrusSearch\Fallbacks\FallbackMethod.


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