Page MenuHomePhabricator

Request for hook in SearchEngine.php (for searchterm)
Closed, ResolvedPublic

Description

Author: gunter.schmidt

Description:
Administrating a wiki it can be very helpful to see, what people are searching for.

This can be done with an extension, which does save the search terms into a special table and
also evaluates this table. This could cause a performance problem and should mainly be used on
small wikis.

The extension needs the searchterm, I think it is in SearchEngine.php in function goResult(
$term )

The first line should be the hook then, like

wfRunHooks( 'SpecialSearchTerm', array( &$term ) );

I am not sure about the exact location and if $term has to be in an array, but I am sure the
programmers understand my request.

Gunter


Version: unspecified
Severity: normal

Details

Reference
bz9447

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:36 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz9447.
bzimport added a subscriber: Unknown Object (MLST).

Added hooks at search result display time in r32306 which will handle this.