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

Public Member Functions

 __construct (Client $client, $aliasName, $specificIndexName, $startOver, $type, ?Printer $out=null)
 
- Public Member Functions inherited from CirrusSearch\Maintenance\Validators\IndexAliasValidator
 __construct (Client $client, $aliasName, $specificIndexName, $startOver, Printer $out)
 
 validate ()
 
- Public Member Functions inherited from CirrusSearch\Maintenance\Validators\Validator
 __construct (Printer $out)
 
 printDebugCheckConfig ( $print=true)
 

Protected Member Functions

 updateIndices (array $add, array $remove)
 
 shouldRemoveFromAlias ( $name)
 
- Protected Member Functions inherited from CirrusSearch\Maintenance\Validators\Validator
 checkConfig ( $actual, array $required, $indent=null)
 
 output ( $message, $channel=null)
 
 outputIndented ( $message)
 

Protected Attributes

 $shouldRemovePrefix
 
- Protected Attributes inherited from CirrusSearch\Maintenance\Validators\IndexAliasValidator
 $client
 
 $aliasName
 
 $specificIndexName
 
 $create = []
 
 $remove = []
 
- Protected Attributes inherited from CirrusSearch\Maintenance\Validators\Validator
 $out
 
 $printDebugCheckConfig = false
 

Constructor & Destructor Documentation

◆ __construct()

CirrusSearch\Maintenance\Validators\IndexAllAliasValidator::__construct ( Client $client,
$aliasName,
$specificIndexName,
$startOver,
$type,
?Printer $out = null )
Parameters
Client$client
string$aliasName
string$specificIndexName
bool$startOver
string$type
Printer | null$out

Member Function Documentation

◆ shouldRemoveFromAlias()

CirrusSearch\Maintenance\Validators\IndexAllAliasValidator::shouldRemoveFromAlias ( $name)
protected
Parameters
string$name
Returns
bool

Reimplemented from CirrusSearch\Maintenance\Validators\IndexAliasValidator.

◆ updateIndices()

CirrusSearch\Maintenance\Validators\IndexAllAliasValidator::updateIndices ( array $add,
array $remove )
protected
Parameters
string[]$add
string[]$remove
Returns
Status

Reimplemented from CirrusSearch\Maintenance\Validators\IndexAliasValidator.


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