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

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
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