CirrusSearch
Elasticsearch-powered search for MediaWiki
Loading...
Searching...
No Matches
CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper Class Reference

Wrapper to augment the phrase suggester profile settings with customization on-wiki using system messages. More...

+ Inheritance diagram for CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper:
+ Collaboration diagram for CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper:

Public Member Functions

 __construct (SearchProfileRepository $wrapped, BagOStuff $bagOStuff)
 
 repositoryType ()
 The repository type.
 
 repositoryName ()
 The repository name.
 
 getProfile ( $name)
 Load a profile named $name.
 
 hasProfile ( $name)
 Check if a profile named $name exists in this repository.
 
 listExposedProfiles ()
 Get the list of profiles that we want to expose to the user.
 

Static Public Member Functions

static fromFile ( $type, $name, $phpFile, BagOStuff $cache)
 
static fromConfig ( $type, $name, $configEntry, Config $config, BagOStuff $cache)
 

Public Attributes

const CIRRUSSEARCH_DIDYOUMEAN_SETTINGS = 'cirrussearch-didyoumean-settings'
 

Detailed Description

Wrapper to augment the phrase suggester profile settings with customization on-wiki using system messages.

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::__construct ( SearchProfileRepository $wrapped,
BagOStuff $bagOStuff )
Parameters
SearchProfileRepository$wrapped
BagOStuff$bagOStuff

Member Function Documentation

◆ fromConfig()

static CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::fromConfig ( $type,
$name,
$configEntry,
Config $config,
BagOStuff $cache )
static
Parameters
string$type
string$name
string$configEntry
Config$config
BagOStuff$cache
Returns
PhraseSuggesterProfileRepoWrapper

◆ fromFile()

static CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::fromFile ( $type,
$name,
$phpFile,
BagOStuff $cache )
static
Parameters
string$type
string$name
string$phpFile
BagOStuff$cache
Returns
SearchProfileRepository

◆ getProfile()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::getProfile ( $name)

Load a profile named $name.

Parameters
string$name
Returns
array|null the profile data or null if not found

Implements CirrusSearch\Profile\SearchProfileRepository.

◆ hasProfile()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::hasProfile ( $name)

Check if a profile named $name exists in this repository.

Parameters
string$name
Returns
bool

Implements CirrusSearch\Profile\SearchProfileRepository.

◆ listExposedProfiles()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::listExposedProfiles ( )

Get the list of profiles that we want to expose to the user.

Returns
array[] list of profiles index by name

Implements CirrusSearch\Profile\SearchProfileRepository.

◆ repositoryName()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::repositoryName ( )

The repository name.

Returns
string

Implements CirrusSearch\Profile\SearchProfileRepository.

◆ repositoryType()

CirrusSearch\Profile\PhraseSuggesterProfileRepoWrapper::repositoryType ( )

The repository type.

Returns
string

Implements CirrusSearch\Profile\SearchProfileRepository.


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