Page MenuHomePhabricator

English Wikisource: Tweak to search results elevating weighting for a specific namespace
Closed, ResolvedPublic


At English Wikisource, we have an issue that the main namespace is predominant in search result, yet some of our namespace are of equal value in terms of presentation for results. We would like to have searches give an equivalent weighting to main namespace (works) and author: namespace (author pages, ns:102). [It would seem that the default search result presentation from CirrusSearch is more configured for a wiki where the primary presentation space is the main ns.]


Search for 'Jules Verne'[1] presents 22 items of results to works where the author is mentioned in the header template of main namespace works. Yet the author page in the author: namespace ranks 23rd, yet is the only page where the search phrase appears in the page title.

It would be desirable that if someone is searching for an author in a simple search that the author: ns be presented as an early result. I am hoping that as authors' names are reflected in the page title / {{PAGENAME}} parameter, that this is a simpler fine-tuning of local criteria.

<ns id="102" case="first-letter" subpages="" canonical="Author" content="" xml:space="preserve">Author</ns>


As a general note, that the other Wikisources may have a similar interest in a configuration where they have separated namespace , and if it is able to be undertaken at one that they may have similar requests for their respective namespace.

Version: wmf-deployment
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 3:27 AM
bzimport set Reference to bz69771.

Local discussion at [[s:en:Special/PermanentLink/5008724#What do you want from search?]]

Not sure in which file that would need to be configured; I hope Nik knows.

Change 161020 had a related patch set uploaded by Manybubbles:
Support strings in namespace weights

Uploaded two patches - one to support configuring namespace weights by name rather than number and one to actually configure the author namespace to have weight 1. I estimate we'll have this deployed in two weeks or so - it probably won't ride this week's release train but probably will ride next week's.

Change 161020 merged by jenkins-bot:
Support strings in namespace weights

Latent question for @Manybubbles

Was this implemented for all WSes, or just for English WS. How/where would I be able to look to know? If just enWS, what process should the other WS communities look to undertake to get the benefit of this implementation. Also noting that as things like the AUTHOR: ns and the namespace number is not consistent across all the WSes (separate exists for that change but that is a different matter)