Page MenuHomePhabricator

Default search results to include namespace "Author"
Closed, ResolvedPublic

Description

[[s:Special:Search/all:Shakespeare]] and [[s:Special:Search/all:John Milton]] produce the right fuzzy results, however [[s:Special:Search/Shakespeare]] and [[s:Special:Search/John Milton]] return undesirable results.

The search box should include at least the Author namespace in order to return suitable author pages, and should possibly include all namespaces in order to increase the relevance of author pages in the search results.

The user should be able to enter Shakespeare in the search field, press Go, and be taken to the first result of [[s:Special:Search/all:Shakespeare]], which is [[s:Author:William Shakespeare]].

Apparently this defined by $wgNamespacesToBeSearchedDefault .


Version: unspecified
Severity: enhancement
URL: http://en.wikisource.org/wiki/Special:Search/Shakespeare

Details

Reference
bz12354

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:57 PM
bzimport set Reference to bz12354.
bzimport added a subscriber: Unknown Object (MLST).

Discussion of this has stemmed out of [[s:WS:S#Abatement of the 'Author' Code]] and this change has been proposed at [[s:WS:S#Default search to include Authors]].

jeluf wrote:

Please decide within your community whether you want to have just the author namespace added to wgNamespacesToBeSearchedDefault or wether you want to add all (including talk??) namespaces.

The community wants the default search results to include Author pages.

I mentioned "all" as a possible technical detail to ensure the desired results appear at the top, however I have done some further testing, and including other namespaces doesnt appear to improve the ranking of Author pages, so please consider that option discarded.

jeluf wrote:

Done.

Changed to:

'enwikisource' => array(
-1 => 0,
0 => 1, 1 => 0,
2 => 0, 3 => 0,
4 => 0, 5 => 0,
6 => 0, 7 => 0,
8 => 0, 9 => 0,
10 => 0, 11 => 0,
12 => 0, 13 => 0,
102 => 1 ),

Marking old verified bugs as closed