|
| finalSetup (SettingsBuilder $settingsBuilder=null) |
|
| execute () |
|
| consume ( $query) |
| Transform the search request into a JSON string representing the search result.
|
|
Public Member Functions inherited from CirrusSearch\Maintenance\Maintenance |
| runChild ( $maintClass, $classFile=null) |
|
| getConnection ( $cluster=null) |
|
| getSearchConfig () |
|
| getMetaStore (Connection $conn=null) |
|
| loadSpecialVars () |
| Execute a callback function at the end of initialisation.
|
|
| done () |
| Call to signal that execution of this maintenance script is complete so the next one gets the right indentation.
|
|
| output ( $message, $channel=null) |
|
| outputIndented ( $message) |
|
| error ( $err, $die=0) |
|
|
| applyGlobals () |
| Applies global variables provided as the options CLI argument to override current settings.
|
|
| processSuggestionSet (SearchSuggestionSet $value) |
| Extract data from a search suggestions set.
|
|
| processArchiveResult (IResultWrapper $value) |
| Extract data from archive search results.
|
|
| searchArchive ( $query) |
| Search for term in the archive.
|
|
| searchFor ( $query) |
| Transform the search request into a Status object representing the search result.
|
|
Protected Member Functions inherited from CirrusSearch\Maintenance\Maintenance |
| disablePoolCountersAndLogging () |
| Disable all pool counters and cirrus query logs.
|
|
| maybeCreateMetastore () |
| Create metastore only if the alias does not already exist.
|
|
| requireCirrusReady () |
|
| getBackCompatOption (string $current, string $bc, bool $required=true) |
| Provides support for backward compatible CLI options.
|
|
◆ __construct()
CirrusSearch\Maintenance\RunSearch::__construct |
( |
| ) |
|
◆ consume()
CirrusSearch\Maintenance\RunSearch::consume |
( |
| $query | ) |
|
Transform the search request into a JSON string representing the search result.
- Parameters
-
- Returns
- string JSON object
◆ finalSetup()
CirrusSearch\Maintenance\RunSearch::finalSetup |
( |
SettingsBuilder | $settingsBuilder = null | ) |
|
◆ processArchiveResult()
CirrusSearch\Maintenance\RunSearch::processArchiveResult |
( |
IResultWrapper | $value | ) |
|
|
protected |
Extract data from archive search results.
- Parameters
-
- Returns
- array
◆ processSuggestionSet()
CirrusSearch\Maintenance\RunSearch::processSuggestionSet |
( |
SearchSuggestionSet | $value | ) |
|
|
protected |
Extract data from a search suggestions set.
- Parameters
-
SearchSuggestionSet | $value | |
- Returns
- array
◆ searchArchive()
CirrusSearch\Maintenance\RunSearch::searchArchive |
( |
| $query | ) |
|
|
protected |
Search for term in the archive.
- Parameters
-
- Returns
- Status<IResultWrapper>
◆ searchFor()
CirrusSearch\Maintenance\RunSearch::searchFor |
( |
| $query | ) |
|
|
protected |
Transform the search request into a Status object representing the search result.
Varies based on CLI input argument type
.
- Parameters
-
- Returns
- Status<CirrusSearch\Search\CirrusSearchResultSet|SearchSuggestionSet|IResultWrapper>
The documentation for this class was generated from the following file:
- maintenance/RunSearch.php