Page MenuHomePhabricator

Configurable search result behavior
Closed, DeclinedPublic

Description

Author: eisenstein

Description:
The code in SpecialSearch.php currently has the following section for results that are unreadable by the current user:

If page content is not readable, just return the title.
This is not quite safe, but better than showing excerpts from non-readable pages
//Note that hiding the entry entirely would screw up paging.
if (!$t->userCanRead()) {

wfProfileOut( $fname );
return "<li>{$link}</li>\n";

}

Could this be replaced with a user-configurable variable or hook for how the result should be displayed? This could be used to replace it with something like 'Result Hidden', or format it differently, or possibly hide it from display completely, if that wouldn't screw up paging. No need to remove it from the result set -- even if one page shows 7 items when it should be showing 10, that should be okay for many users.


Version: 1.13.x
Severity: enhancement

Details

Reference
bz15683

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 10:20 PM
bzimport added a project: MediaWiki-Search.
bzimport set Reference to bz15683.
bzimport added a subscriber: Unknown Object (MLST).

Easily done via the ShowSearchHitTitle, marking WORKSFORME.