CirrusSearch
Elasticsearch-powered search for MediaWiki
|
Hooks to allow custom fields to be added to the search index for pages. More...
Public Member Functions | |
onSearchIndexFields (&$fields, $engine) | |
Add configured fields to mapping. | |
Static Public Member Functions | |
static | buildSearchIndexFields (SearchEngine $engine, Config $config) |
Build configured fields. | |
Public Attributes | |
const | CONFIG_OPTION = 'CirrusSearchCustomPageFields' |
Hooks to allow custom fields to be added to the search index for pages.
|
static |
Build configured fields.
SearchEngine | $engine | |
Config | $config | the wiki configuration |
CirrusSearch\Hooks\CustomPageFields::onSearchIndexFields | ( | & | $fields, |
$engine ) |
Add configured fields to mapping.
array | &$fields | array of field definitions to update |
SearchEngine | $engine | the search engine requesting field definitions |