Last modified: 2008-03-21 22:37:02 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T11447, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9447 - Request for hook in SearchEngine.php (for searchterm)
Request for hook in SearchEngine.php (for searchterm)
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Search (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-03-29 15:25 UTC by Gunter Schmidt
Modified: 2008-03-21 22:37 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Gunter Schmidt 2007-03-29 15:25:36 UTC
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
Comment 1 Brion Vibber 2008-03-21 22:37:02 UTC
Added hooks at search result display time in r32306 which will handle this.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links