Wikibase
MediaWiki Wikibase extension
|
The script is intended to run searches in the same way as wbsearchentities does. More...
Public Member Functions | |
__construct () | |
execute () | |
Do the actual work. More... | |
doSearch ( $query) | |
Run search for one query. More... | |
Protected Member Functions | |
applyGlobals () | |
Applies global variables provided as the options CLI argument to override current settings. More... | |
Private Member Functions | |
getSearchHelper ( $engine) | |
Get appropriate searcher. More... | |
Private Attributes | |
$searchHelper | |
The script is intended to run searches in the same way as wbsearchentities does.
This is mainly intended to test configurations and search options using relforge or analogous tools. It is modeled after runSearch.php script in CirrusSearch extension.
The script accepts search requests from stdin, line by line, and outputs results, preserving order.
Wikibase\Repo\Maintenance\SearchEntities::__construct | ( | ) |
|
protected |
Applies global variables provided as the options CLI argument to override current settings.
NOTE: this is a hack to test various search profiles, not to be used to mess with other global variables.
Wikibase\Repo\Maintenance\SearchEntities::doSearch | ( | $query | ) |
Run search for one query.
string | $query |
Wikibase\Repo\Maintenance\SearchEntities::execute | ( | ) |
Do the actual work.
All child classes will need to implement this
|
private |
Get appropriate searcher.
string | $engine |
MWException |
|
private |