CirrusSearch
Elasticsearch-powered search for MediaWiki
|
All CirrusSearch's external hooks. More...
Public Member Functions | |
__construct (ConfigFactory $configFactory) | |
onBeforeInitialize ( $title, $unused, $outputPage, $user, $request, $mediaWiki) | |
Hooked to call initialize after the user is set up. | |
onApiBeforeMain (&$apiMain) | |
Hooked to call initialize after the user is set up. | |
onSoftwareInfo (&$software) | |
Hook called to include Elasticsearch version info on Special:Version. | |
onSpecialSearchResultsAppend ( $specialSearch, $out, $term) | |
onPrefixSearchExtractNamespace (&$namespaces, &$search) | |
Extract namespaces from query string. | |
onSearchGetNearMatch ( $term, &$titleResult) | |
onResourceLoaderGetConfigVars (array &$vars, $skin, Config $config) | |
ResourceLoaderGetConfigVars hook handler This should be used for variables which vary with the html and for variables this should work cross skin. | |
onShowSearchHitTitle (&$title, &$text, $result, $terms, $page, &$query, &$attributes) | |
Add $wgCirrusSearchInterwikiProv to external results. | |
onAPIAfterExecute ( $module) | |
onSpecialSearchResults ( $term, &$titleMatches, &$textMatches) | |
onGetPreferences ( $user, &$prefs) | |
@inheritDoc | |
onUserGetDefaultOptions (&$defaultOptions) | |
@inheritDoc | |
onSpecialStatsAddExtra (&$extraStats, $context) | |
onAPIQuerySiteInfoStatisticsInfo (&$extraStats) | |
Static Public Member Functions | |
static | initializeForRequest (WebRequest $request) |
Initializes the portions of Cirrus that require the $request to be fully initialized. | |
static | prefixSearchExtractNamespaceWithConnection (Connection $connection, &$namespaces, &$search) |
static | handleSearchGetNearMatch ( $term, &$titleResult) |
Let Elasticsearch take a crack at getting near matches once mediawiki has tried all kinds of variants. | |
All CirrusSearch's external hooks.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html
CirrusSearch\Hooks::__construct | ( | ConfigFactory | $configFactory | ) |
ConfigFactory | $configFactory |
|
static |
Let Elasticsearch take a crack at getting near matches once mediawiki has tried all kinds of variants.
string | $term | the original search term and all language variants |
null | Title | &$titleResult | resulting match. A Title if we found something, unchanged otherwise. |
|
static |
Initializes the portions of Cirrus that require the $request to be fully initialized.
WebRequest | $request |
CirrusSearch\Hooks::onAPIAfterExecute | ( | $module | ) |
ApiBase | $module |
CirrusSearch\Hooks::onApiBeforeMain | ( | & | $apiMain | ) |
Hooked to call initialize after the user is set up.
ApiMain | &$apiMain | The ApiMain instance being used |
CirrusSearch\Hooks::onBeforeInitialize | ( | $title, | |
$unused, | |||
$outputPage, | |||
$user, | |||
$request, | |||
$mediaWiki ) |
Hooked to call initialize after the user is set up.
Title | $title | |
null | $unused | |
OutputPage | $outputPage | |
User | $user | |
WebRequest | $request | |
ActionEntryPoint | $mediaWiki |
CirrusSearch\Hooks::onPrefixSearchExtractNamespace | ( | & | $namespaces, |
& | $search ) |
Extract namespaces from query string.
array | &$namespaces | |
string | &$search |
CirrusSearch\Hooks::onResourceLoaderGetConfigVars | ( | array & | $vars, |
$skin, | |||
Config | $config ) |
ResourceLoaderGetConfigVars hook handler This should be used for variables which vary with the html and for variables this should work cross skin.
array | &$vars | |
string | $skin | |
Config | $config |
CirrusSearch\Hooks::onShowSearchHitTitle | ( | & | $title, |
& | $text, | ||
$result, | |||
$terms, | |||
$page, | |||
& | $query, | ||
& | $attributes ) |
Add $wgCirrusSearchInterwikiProv to external results.
Title | &$title | |
string | HtmlArmor | null | &$text | |
SearchResult | $result | |
array | $terms | |
SpecialSearch | $page | |
string[] | &$query | |
string[] | &$attributes |
CirrusSearch\Hooks::onSoftwareInfo | ( | & | $software | ) |
Hook called to include Elasticsearch version info on Special:Version.
array | &$software | Array of wikitext and version numbers |
CirrusSearch\Hooks::onSpecialSearchResults | ( | $term, | |
& | $titleMatches, | ||
& | $textMatches ) |
string | $term | |
ISearchResultSet | null | &$titleMatches | |
ISearchResultSet | null | &$textMatches |
CirrusSearch\Hooks::onSpecialSearchResultsAppend | ( | $specialSearch, | |
$out, | |||
$term ) |
SpecialSearch | $specialSearch | |
OutputPage | $out | |
string | $term |
|
static |
Connection | $connection | |
array | &$namespaces | |
string | &$search |